public void HostGameRelay() { if (networkManagerObject) { connectedPlayersCanvas.SetActive(true); NetworkedGameManager_Script nm = networkManagerObject.GetComponent <NetworkedGameManager_Script>(); nm.SetPort(); nm.StartHost(); } }
public void HostGameRelay() { if (networkManagerObject) { NetworkedGameManager_Script nm = networkManagerObject.GetComponent <NetworkedGameManager_Script>(); nm.SetPort(); nm.StartHost(); startJoinPanelObject.SetActive(false); ipFieldObject.GetComponent <InputField>().text = Network.player.ipAddress.ToString(); ipFieldObject.GetComponent <InputField>().interactable = false; cancelConnectionButtonObject.SetActive(true); connectedPlayersCanvas.SetActive(true); } }