Exemplo n.º 1
0
 //弃牌
 public void AbandonmentCard()
 {
     if (ListHandCard.Count > 5)
     {
         isAbandonment = true;
         print("还需弃 " + (ListHandCard.Count - 5) + " 张牌");
     }
     else
     {
         isAbandonment = false;
         roundManager.EndingRoundStart();
     }
 }
Exemplo n.º 2
0
 //弃牌
 public void AbandonmentCard()
 {
     if (ListHandCard.Count > 5)
     {
         isAbandonment = true;
         GameObject.Find("DiscardText").GetComponent <Text>().text = "请弃牌,还需弃 " + (ListHandCard.Count - 5) + " 张牌";
         print("还需弃 " + (ListHandCard.Count - 5) + " 张牌");
     }
     else
     {
         Destroy(GameObject.Find("DiscardTips(Clone)"));
         isAbandonment = false;
         roundManager.EndingRoundStart();
     }
 }