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 Update()
        {
            if (runningTournament == false)
            {
                return;
            }

            if (Input.GetKeyDown(KeyCode.Escape))
            {
                if (spectating)
                {
                    AdminUIManager.requestGotoState(ClientUI.ClientUIStates.PlayingTournament, () => {
                        spectating = false;
                        initVisualTree(tournamentInfo);
                    });
                }
            }
        }
 public void onStatsPressed()
 {
     AdminUIManager.requestGotoState(ClientUIStates.Stats);
     setActive(false);
 }
 public void onGameLobbyPressed()
 {
     AdminUIManager.requestGotoState(ClientUIStates.GameLobby);
     setActive(false);
 }