Exemple #1
0
    public void SetupPlayers(int numPlayers)
    {
        //Prepares the game to assign Players their Characeter and turn order

        /*players = new Player[GameData.GetNumPlayers()];
         * for (int i = 0; i < GameData.GetNumPlayers(); i++)
         * {
         *  GameObject playerObject = Instantiate((GameObject)Resources.Load("Prefabs/Player", typeof(GameObject)));
         *  Player player = playerObject.GetComponent<Player>();
         *  players[i] = player;
         * }*/

        //hides player choice buttons
        GameGUI.HidePlayerCountScreen();

        //sets the amount of players
        GameData.SetNumPlayers(numPlayers);

        //keeps track of which player has been set up so far
        currPlayerIndex = 0;

        //resets players array


        //Transition to an explanation screen of how players will roll to decide turn order
        GameGUI.ShowExplanationScreen("ChooseRollOrderText", GameGUI.HideExplanationShowSetup);

        // the first player in the list goes firstsetup
        //currPlayerIndex = 0;
        //GameData.SetCurrPlayer(players[0]);
    }