void UpdateSortCard(LocalNotification e) { ArgsCard args = e.param as ArgsCard; SelfCardsManager.Instance.OrderRealDicToList(args.type == TGuanDanCT.CT_TONG_HUA_SHUN ? 0 : 100); SetCardPosAndDepth(SelfCardsManager.Instance.mRealCardDic); // 刷新底部牌 SelfCardsManager.Instance.ClearAllSelectCards(); AudioManager.Instance.PlayCommonAudio(GlobalData.AudioNameSortCard); }
void RecevSortCard(MsgGlobal msg) { MsgAction data = msg.action; var cardList = data.action_card; cardList.Reverse(); SelfCardsManager.Instance.mCurSelectCardIds.Clear(); for (int i = 0; i < cardList.Count; i++) { SelfCardsManager.Instance.mCurSelectCardIds.Add(cardList[i]); } SaveSortRecord(cardList, data.action_ct); ArgsCard args = new ArgsCard(); args.type = data.action_ct; NotificationCenter.Instance().PostDispatchEvent((uint)ENotificationMsgType.ESortCard, args); }