예제 #1
0
 public void GoToAndPlay(string animName)
 {
     if (animName == ActiveAnimation?.Name)
     {
         ActiveAnimation.Restart();
     }
     else
     {
         ActiveAnimation = AnimationStore.GetAnimation(animName);
         ActiveAnimation.Play();
     }
 }