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); }
public SpriteAnimator this[string i_Name] { get { SpriteAnimator retVal = null; m_AnimationsDictionary.TryGetValue(i_Name, out retVal); return(retVal); } }
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); }