Exemplo n.º 1
0
        //Sends a request to the master server to join the game
        //If yes, UnetRoomConnector will run "ConnectToGame" function

        public void onJoinStartedGame(PreGameStartedMsg gameInfo)
        {
            preLobby.removeHandlers();
            SpawnRequestController controller = new SpawnRequestController(gameInfo.specs.roomID, Msf.Connection, gameInfo.specs.spawnCode);

            MsfSpawnersClient._localSpawnRequests[controller.SpawnId] = controller;
            ProgressUi.Display(controller);
        }
Exemplo n.º 2
0
        public static void handleStartGame(IIncommingMessage rawMsg)
        {
            PreGameStartedMsg msg = rawMsg.Deserialize <PreGameStartedMsg>();

            if (matchingSpecs(msg.specs, gameSpecs) == false)
            {
                Debug.LogError("Got non-matching start msg to: " + msg.specs.roomID + " Type: " + msg.specs.type);
                return;
            }
            currentlyPlayingGame = true;
            setupLocalPlayers(msg.slots);
            gameConnector.onJoinStartedGame(msg);
            AlbotDialogBox.removeAllPopups();
        }