public void PlayAnimationByNameReversed(string animationName) { Animation2D foundAnimation; animationsByName.TryGetValue(animationName, out foundAnimation); if (!canSwitchAnimations) { return; } if (foundAnimation) { if (currentAnimation) { if (currentAnimation.GetComponent <Blink2D>()) { currentAnimation.GetComponent <Blink2D>().StopBlinking(); } currentAnimation.Stop(); currentAnimation.Hide(); } foundAnimation.Show(); foundAnimation.Play(false, true, false); currentAnimation = foundAnimation; } }