Example #1
0
 private bool NeedActivate(ATween t)
 {
     if (t.IsPause == false &&
         t.IsComplete == false)
     {
         t.OnStartEvent?.Invoke();
         return(true);
     }
     return(false);
 }
Example #2
0
        private bool NeedDeactivate(ATween t)
        {
            bool needDeactive = false;

            if (t.IsComplete)
            {
                t.OnCompleteEvent?.Invoke();
                needDeactive = true;
            }
            if (t.IsPause)
            {
                t.OnPauseEvent?.Invoke();
                needDeactive = true;
            }
            return(needDeactive);
        }
Example #3
0
 public static void Forward(this ATween t)
 {
     TweenManager.Instance.Forward(t);
 }
Example #4
0
 public static void Pause(this ATween t)
 {
     TweenManager.Instance.Pause(t);
 }
Example #5
0
 public static void Backward(this ATween t)
 {
     TweenManager.Instance.Backward(t);
 }
Example #6
0
 public void Pause(ATween t)
 {
     t.IsPause = true;
 }
Example #7
0
 public void Reset(ATween t)
 {
     t.Reset();
 }
Example #8
0
 public void Backward(ATween t)
 {
     t.Backward();
     ActiveTweenList.Add(t);
 }
Example #9
0
 public void Forward(ATween t)
 {
     t.Forward();
     ActiveTweenList.Add(t);
 }