示例#1
0
    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");
     }
 }
示例#3
0
 public void LoadScene()
 {
     sceneLoader.LoadLevel(sceneToLoad);
 }
示例#4
0
 public void GoToScene(string nomeScena)
 {
     loading.LoadLevel(nomeScena);
 }
 public void GoLocalCoop()
 {
     sceneLoader.LoadLevel("TestSceneRPGLocal");
     stateMachine.StopObserving();
 }