Example #1
0
 public static void Restart(this IFramedAnimation animation) => animation.GotoAndPlay(0);
Example #2
0
 public static void Stop(this IFramedAnimation animation) => animation.IsPlaying = false;
Example #3
0
 public static void GotoAndPlay(this IFramedAnimation animation, int frameIndex)
 {
     animation.GotoFrame(frameIndex);
     animation.IsPlaying = true;
 }
Example #4
0
 public static void Play(this IFramedAnimation animation) => animation.IsPlaying = true;
Example #5
0
 public static void GotoAndStop(this IFramedAnimation animation, int frameIndex)
 {
     animation.GotoFrame(frameIndex);
     animation.IsPlaying = false;
 }