Exemplo n.º 1
0
 void Start()
 {
     stepsMovedFromSpawn = 0;
     boardObject         = boardInput.GetComponent <Board> ();
     playerButton        = GetComponent <RectTransform> ();
     ruleChecker         = boardInput.GetComponent <GameRulesUtility> ();
 }
Exemplo n.º 2
0
 void Start()
 {
     ruleChecker   = this.gameObject.GetComponent <GameRulesUtility> ();
     playerNameMap = new List <string>()
     {
         "Red", "Green", "Pink", "Blue"
     };
     playerPawnMap = new Dictionary <string, GameObject[]> ()
     {
         { player1_pawns[0].tag, player1_pawns }, { player2_pawns[0].tag, player2_pawns }, { player3_pawns[0].tag, player3_pawns }, { player4_pawns[0].tag, player4_pawns }
     };
     changePlayerTurnName(playerNameMap [playerTurnValue]);
     removeNonPlayablePlayers();
 }