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