Beispiel #1
0
    public void NewGame()
    {
        if (FindObjectOfType <MemoryManager>() != null)
        {
            //se o objeto existir, deleta ele
            MemoryManager.Amnesia();
        }

        StartCoroutine(changeLevel(firstSceneIndex));
    }
Beispiel #2
0
 public void OnClickBackToMenu()
 {
     MemoryManager.Amnesia();
     SceneManager.LoadScene(0);
 }
Beispiel #3
0
    public void Restart()
    {
        MemoryManager.Amnesia();

        SceneManager.LoadScene(this.startSceneName);
    }