Пример #1
0
    void LevelLose()
    {
        livesLeft = 0;

        if (!gameOver)
        {
            GetComponent <AudioSource>().PlayOneShot(audioScript.gameSounds[4]);
            gameOver = true;
        }
        if (Input.GetKeyDown(KeyCode.Space) || Input.touchCount == 1)
        {
            guiScript.GoToMainMenu();
        }
        timing = false;
        LevelLoad();
    }