public void OnClickDedicated() { lobbyManager.ChangeTo(null); lobbyManager.StartServer(); lobbyManager.GetComponent <LobbyNetworkDiscovery>().StartBroadcast(); lobbyManager.backDelegate = lobbyManager.StopServerClbk; lobbyManager.SetServerInfo("Dedicated Server", lobbyManager.networkAddress); }
void JoinMatch() { lobbyManager.ChangeTo(lobbyManager.lobbyPanel); lobbyManager.networkAddress = lanMatch.ipAddress; lobbyManager.StartClient(); lobbyManager.backDelegate = lobbyManager.StopClientClbk; lobbyManager.DisplayIsConnecting(); lobbyManager.SetServerInfo("Connecting...", lobbyManager.networkAddress); }