Ejemplo n.º 1
0
        public void InvokeState()
        {
            lobbyText.text = "Authentication...";
            menuActivator.OpenMenu(lobbyMenu);


            stateManager.NetworkPlayGameState.ConfigurationType = ConfigurationType;

            if (ConfigurationType == BoardType.SMALL)
            {
                multiplayerController.SignInAndStartMPGame(0);
            }
            else if (ConfigurationType == BoardType.LARGE)
            {
                multiplayerController.SignInAndStartMPGame(1);
            }

            exitListener.Enable();
            exitListener.OnExitClicked += OnExit;
        }
        /// <summary>
        /// Starts authentication and opponent searching process.
        /// </summary>
        public void InvokeState()
        {
            multiplayerController = MultiplayerController.GetInstance();
            lobbyText.text        = authenticationString;
            menuActivator.OpenMenu(lobbyMenu);
            SubscribeOnNetworkEvents();

            stateManager.NetworkPlayGameState.ConfigurationType = ConfigurationType;
            if (ConfigurationType == BoardType.SMALL)
            {
                multiplayerController.SignInAndStartMPGame(0);
            }
            else if (ConfigurationType == BoardType.LARGE)
            {
                multiplayerController.SignInAndStartMPGame(1);
            }

            exitListener.Enable();
            exitListener.OnExitClicked += OnExit;
        }