public bool SetAnimation(string Name) { Animation animation; if (!animations.TryGetValue(Name, out animation)) return false; currentAnimation = animation; currentAnimation.CurrentSource = 0; Bounding = currentAnimation.Sources[0]; return true; }
public void AddAnimation(Animation animation) { animations[animation.Name] = animation; }