void checkForToggleMenuRequest() { if (Input.GetKeyUp(KeyCode.Escape) && !gameManagerMaster.isInventoryUI && !gameManagerMaster.isGameOver) { gameManagerMaster.callGameMenuToggleEvent(); } }
void setMenuPanel() { menuPanel.SetActive(true); myInstructionPanel.SetActive(false); gameManagerMasterScript.callGameMenuToggleEvent(); }