public void SetAnimation(string animationName) { if (CurrentAnimation == null || CurrentAnimation.ActionName != animationName) { CurrentAnimation = Name_Animation[animationName]; CurrentAnimation.CurrentFrame = 0; } }
public void SetDefaultAnimation() { if (CurrentAnimation == null || CurrentAnimation.ActionName != "Default") { CurrentAnimation = Name_Animation["Default"]; CurrentAnimation.CurrentFrame = 0; } }
public void AddAnimation(string animationName, Animation animation) { Name_Animation.Add(animationName, animation); }