void Update() { if (m_input.GetPause()) { MenuActions.instance.ChangePanel(MainMenuScreen); } }
// Update is called once per frame void Update() { if (m_input.GetChangeColor()) { Debug.Log("change color"); } if (m_input.GetSubmit()) { Debug.Log("submit"); } if (m_input.GetPrevious()) { Debug.Log("previous"); } if (m_input.GetPause()) { Debug.Log("pause"); } if (m_input.GetUp()) { Debug.Log("up"); } if (m_input.GetDown()) { Debug.Log("down"); } if (m_input.GetLeft()) { Debug.Log("left"); } if (m_input.GetRight()) { Debug.Log("right"); } }
// ====================================================================================== public void Update() { if (m_input.GetPause()) { SceneManager.LoadScene(scenePath); } }
void Update() { if (m_input.GetPause()) { RoundStarter.RestartRound(); DeactivateVictoryWindow(); } }
void Update() { #if UNITY_EDITOR if (m_input.GetPause()) { UnityEngine.SceneManagement.SceneManager.LoadScene("MenuGold"); } else if (m_input.GetChangeColor()) { UnityEngine.SceneManagement.SceneManager.LoadScene("TavernGold"); } #endif if (m_input.GetPause()) { LevelLoader.instance.GoToMenu(); } else if (m_input.GetChangeColor()) { LevelLoader.instance.StartGame("TavernGold"); } }