public void OnClick() { if (PongGame.instance.isPaused) { ingameMenu.ResumeGame(); } else { ingameMenu.PauseGame(); } }
public void Go() { // Select gear weaponButtons[selectedWeapon].GetComponent <GearButton>().ChooseAction.Invoke(); armorButtons[selectedArmor].GetComponent <GearButton>().ChooseAction.Invoke(); engineButtons[selectedEngine].GetComponent <GearButton>().ChooseAction.Invoke(); // Resume game strategyPanel.gameObject.SetActive(true); ingameMenu.ResumeGame(); }