public void Attack() { if (!gameOver) { player.enabled = false; gameOverImage.enabled = true; pauseMenu.enabled = false; gameOver = true; } if (tempoPassato <= tempoGameOver) { tempoPassato += Time.deltaTime; } else { gameOverImage.enabled = false; if (!isAlreadyLoading) { reloadLevelScreen.LoadLevel(levelName); isAlreadyLoading = true; } tempoPassato = 0f; } }
public void MainMenu() { if (!inOption) { LevelLoader.LoadLevel("Menu"); } }
public void LoadScene() { sceneLoader.LoadLevel(sceneToLoad); }
public void GoToScene(string nomeScena) { loading.LoadLevel(nomeScena); }
public void GoLocalCoop() { sceneLoader.LoadLevel("TestSceneRPGLocal"); stateMachine.StopObserving(); }