示例#1
0
 public virtual void RegisterAnimation(string name, SpriteAnimation_Base animation)
 {
     if (!_Animations.ContainsKey(name))
     {
         _Animations.Add(name, animation);
     }
 }
示例#2
0
 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);
     }
 }