Esempio n. 1
0
    public void OnPlayer2Click()
    {
        GameData.AIs = new bool[2];
        Player2Button.SetActive(false);
        Player3Button.SetActive(false);
        Player4Button.SetActive(false);

        Player1.SetActive(true);
        Player2.SetActive(true);

        BackPlayer.SetActive(true);
        BackMenu.SetActive(false);
        MatchSelectButton.SetActive(true);
        PlaySelectButton.SetActive(true);

        es.SetSelectedGameObject(Player1);
    }
Esempio n. 2
0
    public void OnBackPlayerButtonClick()
    {
        Player1.SetActive(false);
        Player2.SetActive(false);
        Player3.SetActive(false);
        Player4.SetActive(false);

        Player2Button.SetActive(true);
        Player3Button.SetActive(true);
        Player4Button.SetActive(true);

        MatchSelectButton.SetActive(false);
        BackPlayer.SetActive(false);
        BackMenu.SetActive(true);
        PlaySelectButton.SetActive(false);

        es.SetSelectedGameObject(Player2Button);
    }