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