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; } }
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; } } } }