Пример #1
0
        private void Ship_SecondDeath(object sender, EventArgs e)
        {
            RotatorAnimator rotatorAnimator = new RotatorAnimator(k_ShipRotatePace, r_LastAnimationLenght);
            FaderAnimator   faderAnimator   = new FaderAnimator(r_LastAnimationLenght);

            m_Animations.AnimationLength = r_LastAnimationLenght;
            m_Animations.Remove("Blink");
            m_Animations.Add(faderAnimator);
            m_Animations.Add(rotatorAnimator);
            m_Animations.Enabled = false;
        }
Пример #2
0
        private void initAnimations()
        {
            m_CellAnimator = new CellAnimator(this, m_FrameTime, k_NumOfFramesInRow, m_EnemyFrameColIndex, m_EnemyFrameRowIndex, TimeSpan.Zero);
            ShrinkerAnimator shrinkerAnimator = new ShrinkerAnimator(r_AnimationLenght);
            RotatorAnimator  rotatorAnimator  = new RotatorAnimator(k_EnemyRotatePace, r_AnimationLenght);

            m_Animations.AnimationLength = r_AnimationLenght;
            m_Animations.Add(shrinkerAnimator);
            m_Animations.Add(rotatorAnimator);
            m_Animations.Finished += animations_Finished;
            m_Animations.Enabled   = false;
        }