コード例 #1
0
    public void TurnOffAllHandCard()
    {
        int count = Game.MJMgr.MyPlayer.handCardLayout.list.Count;

        for (int i = 0; i < count; i++)
        {
            MJEntity cardTran = Game.MJMgr.MyPlayer.handCardLayout.list[i];
            Renderer r        = cardTran.GetComponent <Renderer>();
            r.material = myCardMatOff;
        }
    }
コード例 #2
0
 public void TurnOffHandCard()
 {
     if (RoomMgr.actionNotify.tingList.Count > 0)
     {
         int count = Game.MJMgr.MyPlayer.handCardLayout.list.Count;
         for (int i = 0; i < count; i++)
         {
             MJEntity cardTran = Game.MJMgr.MyPlayer.handCardLayout.list[i];
             Renderer r        = cardTran.GetComponent <Renderer>();
             int      card     = cardTran.Card;
             if (RoomMgr.IsTingDropCard(card))
             {
                 r.material = myCardMatOn;
             }
             else
             {
                 r.material = myCardMatOff;
             }
         }
     }
 }