コード例 #1
0
        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);
            });
        }
コード例 #2
0
 private void Start()
 {
     singleton = this;
     Msf.Connection.SetHandler((short)CustomMasterServerMSG.runningTournamentUpdate, handleTournamentUpdate);
 }