public static void Restart(this IFramedAnimation animation) => animation.GotoAndPlay(0);
public static void Stop(this IFramedAnimation animation) => animation.IsPlaying = false;
public static void GotoAndPlay(this IFramedAnimation animation, int frameIndex) { animation.GotoFrame(frameIndex); animation.IsPlaying = true; }
public static void Play(this IFramedAnimation animation) => animation.IsPlaying = true;
public static void GotoAndStop(this IFramedAnimation animation, int frameIndex) { animation.GotoFrame(frameIndex); animation.IsPlaying = false; }