Ejemplo n.º 1
0
    public void SetupNextPlayer()
    {
        // Prepares the game to setup the next character or determine move order if all Player's are set up.
        currPlayerIndex++;
        if (currPlayerIndex < GameData.GetNumPlayers())
        {
            GameGUI.ShowSetupScreen("Player" + (currPlayerIndex + 1));
            GameGUI.ShowCurrentPieceColor();
        }
        else
        {
            // hide the setup screen
            GameGUI.HideSetupScreen();

            //send analytics event for game start
            GameGUI.analyticsGameStarted.OnGameStart();

            // determine the move order
            DetermineMoveOrder();
        }
    }