Exemple #1
0
        public Tween(
            T start_value,
            UnityTick tick_type = UnityTick.UPDATE,
            Easing.Ease.Interpolation <T> ease_fuction = null,
            float time_factor             = 1,
            System.Action change_callback = null
            )
        {
            this.target_value    = this.current_value = start_value;
            this.tick_type       = tick_type;
            this.time_factor     = time_factor;
            this.ease_fuction    = ease_fuction;
            this.change_callback = change_callback;

            if (this.tick_type != UnityTick.MANUAL)
            {
                TickManager.AssignFast(this, this.tick_type);
            }
        }