public override void OnMatchCreate(bool success, string extendedInfo, MatchInfo matchInfo) { base.OnMatchCreate(success, extendedInfo, matchInfo); CurrentMatchInfo = matchInfo; ColorsInUse.Clear(); }
public override void OnStartHost() { base.OnStartHost(); SwitchPanel(LobbyPanel); ColorsInUse.Clear(); }
//leave lobby and return to multiplayer screen public void LeaveLobby() { if (CurrentlyMatchmaking) { if (matchMaker != null) { matchMaker.DestroyMatch(CurrentMatchInfo.networkId, 0, OnDestroyMatch); } StopHost(); ColorsInUse.Clear(); } else if (NetworkServer.active) { StopHost(); } else { StopClient(); } SwitchPanel(MultiplayerPanel); }