public void Add(SpriteAnimator i_Animation) { i_Animation.BoundSprite = this.BoundSprite; i_Animation.Enabled = true; r_AnimationsDictionary.Add(i_Animation.Name, i_Animation); r_AnimationsList.Add(i_Animation); }
public override void Initialize() { base.Initialize(); m_SpriteBatch = new SpriteBatch(Game.GraphicsDevice); m_PulseAnimator = new PulseAnimator("PulseAnimator", new TimeSpan(), 1f, 1f); this.Animations.Add(m_PulseAnimator); this.Animations.Enabled = false; }