Пример #1
0
 // Update card slot colours for player colour
 public void ChangeSlotColours(bool redPlayer)
 {
     foreach (GameObject cardSlot in cardSlots)
     {
         SlotController slotScript = cardSlot.GetComponent <SlotController>();
         slotScript.SetMaterial(redPlayer);
         slotScript.ResetSlot();
         redPlayer = !redPlayer;
     }
 }