/// <summary> /// Restarts the animation. /// </summary> /// <param name="animation">The animation to restart.</param> public static void Restart(this IAnimation animation) => animation.GotoAndPlay(0);