Esempio n. 1
0
    private void Lose()
    {
        SceneManager.LoadScene("GameOver");

        //Hack Lives
        Lives = 3;
        LevelNumberManager.GoToFirstLevel();
    }
    private void Awake()
    {
        if (_instance != null)
        {
            Destroy(this);
            return;
        }

        _instance = this;

        DontDestroyOnLoad(gameObject);

        LevelNumberManager.GoToFirstLevel();
    }