示例#1
0
    private void OnDestroy()
    {
        //Play death sound
        gController.StopBackgroundMusic();

        //Turn on game over screen
        gameOverScreen.EnableGameOverScreen();
        if (startMenuObject.activeSelf == true)
        {
            startMenuObject.SetActive(false);
        }

        //Stop the score timer
        scoreUpdater.PlayerDead();
    }