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