@NotNull open fun setInterval(interval: Long): @NotNull GameAnimatorBuilder
Sets the interval in which the games are going to be changed.
interval - Long: the interval as a long
IllegalArgumentException - when the interval is not grater than 0
Return
GameAnimatorBuilder: the GameAnimatorBuilder
@NotNull open fun setInterval(interval: Long, @Nullable unit: @Nullable TimeUnit?): @NotNull GameAnimatorBuilder
Sets the animation interval and its unit.
interval - Long: the interval
unit - TimeUnit?: the TimeUnit or null if you don't want to change it
IllegalArgumentException - when the interval is not grater than 0
Return
GameAnimatorBuilder: the GameAnimatorBuilder