ScrollingShooter.ScrollingShooterGame.PlayerDeath C# (CSharp) Method

PlayerDeath() public method

public PlayerDeath ( ) : void
return void
        public void PlayerDeath()
        {
            loadSplashScreen(new GameOver());
            SplashType = SplashScreenType.GameOver;
            LevelManager.ResetLevel = false;
            LevelManager.Ending = true; //This needs to be true. Otherwise the player restarts the game as dead.
            Player.Score = 0;
            Player.Lives = 5;
            Player.Health = Player.MaxHealth;
            Player.Dead = false;
            Player.ClearPowerups();
            Player.ApplyPowerup(PowerupType.Default);
        }