public void ListenForKeyDown() { if (Input.GetKeyDown("escape") && Mode != GameMode.Sandbox) { ESCMenuUI.ToggleOn(); ScenePauseMenu.ToggleOn(); } }
static private ScenePauseMenu setInstance() { instance = HUDManager.Instance.GetComponentInChildren <ScenePauseMenu>(true); return(instance); }