Example #1
0
 public void PlaySwapAnimation(Vector3 from, Vector3 to, System.Action onFinished)
 {
     tween.from = from;
     tween.to   = to;
     tween.ClearFinishedEvent();
     {
         tween.AddFinishedEvent(() =>
         {
             if (onFinished != null)
             {
                 onFinished();
             }
         });
     }
     tween.PlayEvent();
 }