예제 #1
0
        //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
        //                                                                                                                        GoBackToStartMenu()
        //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
        void GoBackToVictoryMenu()
        {
            DestroyCreditsMenu();

            MyGame mygame = game as MyGame;

            mygame.CreateVictoryScreen();
        }
예제 #2
0
        //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
        //                                                                                                                        HandleDeath()
        //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
        void HandleDeath()
        {
            if (Globals.health_boss == 0 && Globals.bossIsDead == false)
            {
                Globals.bossIsDead = true;

                MyGame mygame = game as MyGame;
                mygame.CreateVictoryScreen();

                if (Globals.bossDeathSoundHasPlayed == false)
                {
                    _deathSound.Play();
                    Globals.bossDeathSoundHasPlayed = true;
                }
            }
        }