public void OnServerButtonPressed() { if (m_networkManager.StartDiscoveryAsServer()) { ShowConnectionMenu(false); } }
public void InitLobby(bool isServer = false) { m_isServer = isServer; if (m_isServer) { m_networkManager.StartDiscoveryAsServer(); } else { m_networkManager.StartDiscoveryAsClient(); } }