Asteroids.Classes.Asteroid.ExplodeAnimation C# (CSharp) Method

ExplodeAnimation() public method

public ExplodeAnimation ( ) : void
return void
        public void ExplodeAnimation()
        {
            switch (size)
            {
                case 1:
                    SmallAst = SmallAstExp.tx;
                    SmallAstExp.GetNextSprite();
                    if (SmallAstExp.isRunning == false)
                    {
                        ReadyToKill = true;
                    }
                    break;
                case 2:
                    MedAst = MedAstExp.tx;
                    MedAstExp.GetNextSprite();
                    if (MedAstExp.isRunning == false)
                    {
                        ReadyToKill = true;
                    }
                    break;
                case 3:
                    LargeAst = LargeAstExp.tx;
                    LargeAstExp.GetNextSprite();
                    if (LargeAstExp.isRunning == false)
                    {
                        ReadyToKill = true;
                    }
                    break;
                default:
                    break;
            }
        }