Example #1
0
        //Quick hacks for Anne

        public void onClick()
        {
            if (isSinglePlayer)
            {
                activateSinglePlayerLobby();
            }
            else
            {
                gameCreator.createNewGame(gameMap);
            }
        }
        public void newGameSelected(bool isTraining)
        {
            if ((newGameDropdown.value == 0 && !isTraining) || (isTraining && newTrainingDropdown.value == 0))
            {
                return;
            }

            MapSelection selectedMap = getSelectedMap(isTraining ? newTrainingDropdown.value : newGameDropdown.value);

            resetSelection();
            gameCreator.createNewGame(selectedMap);
        }
        /*
         * // Update is called once per frame
         * private void Update() {
         *  if (Input.GetKeyDown(KeyCode.O) && ClientUIOverlord.currentState == ClientUIStates.GameLobby)
         *      createNewSpeedRunnerGame();
         * }
         */

        private void createNewSpeedRunnerGame()
        {
            print("Sending Create Game");
            gameCreator.createNewGame(speedRunnerGameSelection);
        }