Example #1
0
        // Use this for initialization
        void Awake()
        {
            if (ClientUIOverlord.hasLoaded)
            {
                return;
            }


            CurrentGame.init(gameConnector);
            CurrentTournament.init();
            Game.ClientPlayersHandler.addUIStateListner();
        }
Example #2
0
        public static void gameOver(string gameOverText, bool sendTCPGameOver = false)
        {
            string buttonText = CurrentTournament.isInTournament ? "To Tournament" : "Return to lobby";

            Action buttonAction;

            if (CurrentTournament.isInTournament)
            {
                buttonAction = () => { CurrentTournament.reOpenTournament(); }
            }
            ;
            else
            {
                buttonAction = () => { ClientUIStateManager.requestGotoState(ClientUIStates.GameLobby); }
            };

            AlbotDialogBox.setGameOver();
            AlbotDialogBox.activateButton(buttonAction, DialogBoxType.GameState, gameOverText, buttonText, 70, 25);
        }