コード例 #1
0
 public void ChangeAnimation(string newAnimation)
 {
     animation.Stop();
     animation = game.ResourceSystem.CreateAnimation(newAnimation);
     animation.Start();
 }
コード例 #2
0
 public AnimationManager(Game1 game, string startingAnimation)
 {
     this.game = game;
     this.animation = game.ResourceSystem.CreateAnimation(startingAnimation);
     this.animation.Start();
 }