public virtual void RegisterAnimation(string name, SpriteAnimation_Base animation) { if (!_Animations.ContainsKey(name)) { _Animations.Add(name, animation); } }
public virtual void RegisterAnimation(string name, SpriteAnimation_Base animation, string cousinAnimation, FireTime fireTime) { animation.FireTime = fireTime; if (!_Animations.ContainsKey(name) && _Animations.ContainsKey(cousinAnimation)) { _Animations[cousinAnimation].AddSibling(animation); _Animations.Add(name, animation); } }