Пример #1
0
 public override void OnDestroy()
 {
     TweenSequence.Cancel();
     TweenSequence = null;
     //this.Actor.RemoveScript(this);
     //FlaxEngine.Object.Destroy(this);
 }
Пример #2
0
 public static SimpleTweener <Vector3> MoveTo(this SimpleTweenSequence tweenAble, Vector3 to, float duration, float?startDelay = null)
 {
     return(tweenAble.AddTweenAction(to, duration, startDelay, SimpleTweenFunctions.TranslateLocal, SimpleTweenFunctions.GetLocalPosition, SimpleTweenFunctions.GetLocalPosition));
 }
Пример #3
0
        /*Tweening: Callbacks/events for
         * - Starting?
         * - Updating?
         * - Pause?
         * - End!
         *
         *
         * OnComplete(TweenCallback callback)
         * OnKill(TweenCallback callback)
         * OnPlay(TweenCallback callback)
         * OnPause(TweenCallback callback)
         * OnRewind(TweenCallback callback)
         * OnStart(TweenCallback callback)
         * OnStepComplete(TweenCallback callback)
         * OnUpdate(TweenCallback callback)
         * OnWaypointChange(TweenCallback<int> callback)*/

        public SimpleTweener(SimpleTweenSequence sequence = null) : base(sequence)
        {
        }
 protected SimpleTweenSequenceElement(SimpleTweenSequence sequence)
 {
     Sequence = sequence;
 }