public void onHostButton() { if (!NetworkClient.active) { manager.StartHost(); } }
public void StartHost() { networkManager.StartHost(); if (!networkManager.isNetworkActive) { return; } landingPagePanel.SetActive(false); lobbyPanel.SetActive(true); }