Esempio n. 1
0
    public void ClickHostButton()
    {
        PanelMainButtons.SetActive(false);
        PanelHost.SetActive(true);

        Communication.ip = Communication.GetLocalIPAddress();

        //
        // Wait for Client as Host
        Communication.HostConnect(Communication.ip);
        //

        //Start Game
        MainPanel.SetActive(false);
        GameController Controller = FindObjectOfType <GameController>().GetComponent <GameController>();

        Controller.StartGame(PlayerType.Host);
    }
Esempio n. 2
0
 public void ClickButtonBack()
 {
     PanelHost.SetActive(false);
     PanelGuest.SetActive(false);
     PanelMainButtons.SetActive(true);
 }
Esempio n. 3
0
 public void ClickGuestButton()
 {
     PanelMainButtons.SetActive(false);
     PanelGuest.SetActive(true);
 }