Пример #1
0
 public void Add(SpriteAnimator i_Animation)
 {
     i_Animation.BoundSprite = this.BoundSprite;
     i_Animation.Enabled     = true;
     m_AnimationsDictionary.Add(i_Animation.Name, i_Animation);
     m_AnimationsList.Add(i_Animation);
 }
Пример #2
0
 public SpriteAnimator this[string i_Name]
 {
     get
     {
         SpriteAnimator retVal = null;
         m_AnimationsDictionary.TryGetValue(i_Name, out retVal);
         return(retVal);
     }
 }
Пример #3
0
        public void Add(SpriteAnimator i_Animation)
        {
            i_Animation.BoundSprite = this.BoundSprite;
            if (this.Name != "AnimationsManager")
            {
                i_Animation.Enabled = true;
            }

            this.m_AnimationsDictionary.Add(i_Animation.Name, i_Animation);
            this.m_AnimationsList.Add(i_Animation);
        }