Exemplo n.º 1
0
 private void ProcessWonCardsList(List <CardOnBoardWon> _cardsWonList)
 {
     Debug.LogFormat("GameController::ProcessWonCardsList");
     cardsRotationFinishedCount = 0;
     foreach (CardOnBoardWon cardWonItem in _cardsWonList)
     {
         Debug.LogFormat("Card won : {0}", cardWonItem.card.BoardPosition);
         Vector2Int cardWonBoardPosition = cardWonItem.card.BoardPosition.Value;
         CardView   targetCardViewItem   = selectableAreasList[cardWonBoardPosition.x, cardWonBoardPosition.y].Card;
         if (targetCardViewItem.PlayerOwner != CurrentPlayer)
         {
             targetCardViewItem.ChangePlayerOwner(cardWonItem.direction, CurrentPlayer);
             cardsRotateCount++;
         }
     }
 }