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