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