예제 #1
0
 public void ChangeAni(string animation, bool reset = false)
 {
     if (this.animation == animation)
     {
         return;
     }
     if (Ani == null)
     {
         Ani = new Animation(AnimationLoader.Get("images/enemies/mrghost" + animation));
     }
     else
     {
         Ani.ChangeAnimation(AnimationLoader.Get("images/enemies/mrghost" + animation), reset);
     }
     this.animation = animation;
 }
 public void ChangeAni(string animation, bool reset = false)
 {
     if (this.animation == animation)
     {
         return;
     }
     if (Ani == null)
     {
         Ani = new Animation(AnimationLoader.Get("images/cirno/" + animation));
     }
     else
     {
         Ani.ChangeAnimation(AnimationLoader.Get("images/cirno/" + animation), reset);
     }
     if (this.animation != "stand")
     {
         turntime = 0;
     }
     this.animation = animation;
 }