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); }
public void ClickButtonBack() { PanelHost.SetActive(false); PanelGuest.SetActive(false); PanelMainButtons.SetActive(true); }
public void ClickGuestButton() { PanelMainButtons.SetActive(false); PanelGuest.SetActive(true); }