Beispiel #1
0
    void GetMenuInput()
    {
        if (rewiredPlayer.GetAxisRaw("Horizontal") == 1 && playerId == gameManager.GetPlayerPauseId())
        {
            pauseMenu.GetComponent <PauseMenu>().NextButton();
            Debug.Log("Next");
        }

        if (rewiredPlayer.GetButtonDown("StartGame"))
        {
            gameManager.EnablePlayerControllers();
            gameManager.SetPaused(false);
            gameManager.SetPlayerPauseId(-1);
            pauseMenu.SetActive(false);
        }
    }
Beispiel #2
0
 public void ResumeGame()
 {
     playerPausing.GetComponentInChildren <Cannon>().SetIsPaused(false);
     this.gameObject.SetActive(false);
     gameManager.EnablePlayerControllers();
 }