Exemplo 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);
    }
Exemplo n.º 2
0
 public void ClickButtonBack()
 {
     PanelHost.SetActive(false);
     PanelGuest.SetActive(false);
     PanelMainButtons.SetActive(true);
 }