예제 #1
0
 public void PlayCard(ColorCard card)
 {
     connection.CmdPlayCard(card); // send the card to the server
     if (card.type == ColorCard.Type.WILD || card.type == ColorCard.Type.WILD4)
     {
         // we first have to set the color by the user
         colorPicker.Show();                               // show the color picker
         StartCoroutine(WaitForColorpickerToFinish(card)); // Wait for the colorpicker to finish before giving turn
     }
     else
     {
         connection.CmdSetNextTurn();
     }
     MyCards.Remove(card);
 }