private void handleTournamentStarted(ResponseStatus status, IIncommingMessage msg) { if (status != ResponseStatus.Success) { Debug.LogError(msg.AsString()); return; } TournamentInfoMsg specMsg = msg.Deserialize <TournamentInfoMsg>(); AdminUIManager.requestGotoState(ClientUI.ClientUIStates.PlayingTournament, () => { AdminRunningTournamentManager.onTournamentStarted(specMsg); }); }
private void Start() { singleton = this; Msf.Connection.SetHandler((short)CustomMasterServerMSG.runningTournamentUpdate, handleTournamentUpdate); }