//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- // CreateGame() //---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- void CreateGame() { DestroyStartMenu(); MyGame mygame = game as MyGame; mygame.CreateLevel1(); mygame.startMusic(); }
//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- // RestartLevel() //---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- void RestartLevel() { DestroyGameOver(); MyGame mygame = game as MyGame; mygame.ResetWholeGame(); mygame.CreateLevel1(); mygame.startMusic(); Globals.bossIsDead = false; }
//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- // RestartGame() //---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- void RestartGame() { DestroyVictoryScreen(); MyGame mygame = game as MyGame; mygame.ResetWholeGame(); mygame.CreateLevel1(); mygame.startMusic(); Globals.bossIsDead = false; }