コード例 #1
0
 public void OnClick()
 {
     if (PongGame.instance.isPaused)
     {
         ingameMenu.ResumeGame();
     }
     else
     {
         ingameMenu.PauseGame();
     }
 }
コード例 #2
0
    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();
    }