public static Roga2dAnimation Build(Roga2dNode node, Roga2dBaseInterval interval, Roga2dAnimationSettings settings)
 {
     Roga2dAnimation animation = new Roga2dAnimation();
     animation.Interval = interval;
     animation.Node = node;
     animation.IsStarted = false;
     animation.finishCallback = null;
     animation.settings = settings;
     return animation;
 }
 public void Play(Roga2dNode root, Transform spawnTransform, Roga2dAnimation animation, Roga2dAnimationFinishCallback finishCallback)
 {
     if (root != null) {
         root.AddChild(animation.Node);
     }
     if (spawnTransform != null) {
         animation.Node.Transform.position = spawnTransform.position;
         animation.Node.Transform.rotation = spawnTransform.rotation;
     }
     animation.finishCallback = finishCallback;
     this.animations.Add(animation);
 }
 private static void AnimationFinished(Roga2dAnimation animation)
 {
     testCounter = 999;
 }
Beispiel #4
0
        private void AnimationFinished(Roga2dAnimation animation)
        {
            animation.settings.Origin.Show();
            animation.settings.Destroy();
            animation.settings = null;

            this.checkDead();
        }
 void AnimationFinished(Roga2dAnimation animation)
 {
     animation.settings.Origin.Show();
     animation.settings.Destroy();
     animation.settings = null;
 }