public void ChangeAnimation(string newAnimation) { animation.Stop(); animation = game.ResourceSystem.CreateAnimation(newAnimation); animation.Start(); }
public AnimationManager(Game1 game, string startingAnimation) { this.game = game; this.animation = game.ResourceSystem.CreateAnimation(startingAnimation); this.animation.Start(); }