예제 #1
0
 void OnFinish()
 {
     if (tween.direction == Direction.Forward)
     {
         tween.ResetToBeginning();
     }
 }
예제 #2
0
 public virtual void PlayAnim(bool isEnter, UnityAction onComplete)
 {
     tween = CreateTweener(isEnter);
     if (onComplete != null)
     {
         tween.AddOnFinished(onComplete);
     }
     tween.ResetToBeginning();
     tween.PlayForward();
 }
예제 #3
0
 public void EnterAnim(UIAnimType animType, UnityAction onComplete)
 {
     ResetAnim(animType);
     if (onComplete != null)
     {
         tween.AddOnFinished(onComplete);
     }
     tween.ResetToBeginning();
     tween.PlayForward();
 }