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); } }
private void ResetCard() { for (int i = 0; i < handCardList.Count; i++) { MJEntity cardObj = handCardList[i]; int cardPoint = cardObj.Card; if (cardPoint % 8 == 1 || cardPoint > 48) //if (true) { cardObj.SetSelect(false); cardObj.isCardUp = false; } else { cardObj.SetEnable(true); } } }