private void PopingCard() { for (int i = 0; i < handCardList.Count; i++) { MJEntity cardObj = handCardList[i]; int cardPoint = cardObj.Card; if (cardPoint % 8 == 1 || cardPoint > 48) { cardObj.isCardUp = true; cardObj.SetSelect(true); } else { cardObj.SetSelect(false); cardObj.SetEnable(false); } } }
public void cardSelect(MJEntity card) // 一张牌抬起 其他牌落下 { for (int i = 0; i < list.Count; i++) { list[i].SetSelect(false); } if (card != null) { card.SetSelect(true); } }
private void ResetCard(params object[] args) { TingLiangFlag = false; detail.LiangtTiShi.gameObject.SetActive(TingLiangFlag); var handCardList = Game.MJMgr.MyPlayer.handCardLayout.list; for (int i = 0; i < handCardList.Count; i++) { MJEntity cardObj = handCardList[i]; //cardObj.tingLiangSendMessage = null; cardObj.SetSelect(false); cardObj.SetEnable(true); } }
private void PopingCard() { var handCardList = Game.MJMgr.MyPlayer.handCardLayout.list; for (int i = 0; i < handCardList.Count; i++) { MJEntity cardObj = handCardList[i]; cardObj.SetSelect(false); //cardObj.tingLiangSendMessage = OnCardChoose; //这里的注册没有去做保证释放,可能有残留的危险。 int cardPoint = cardObj.Card; bool isEnable = RoomMgr.actionNotify.tingList.Count == 0?true:RoomMgr.actionNotify.tingList.Contains(cardPoint); cardObj.SetEnable(isEnable); } }