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);
 }
Esempio n. 2
0
        public AnimatedMenuItem(string i_Text, GameWrapper i_Game)
            : base(i_Text, i_Game)
        {
            if (m_PulseAnimator == null)
            {
                m_PulseAnimator = new PulseAnimator(k_PulseAnimatorName, 0.997f);
            }

            m_PulseAnimator.BoundSprite = m_SpriteFontManager;
            m_PulseAnimator.Initialize();
        }