/// <summary> /// 加注按钮点击 /// </summary> public void OnJiazhuClick() { if (XXGoldFlowerGameModel.Inst.mOpt == null) { return; } GoldFlowerOpt data = XXGoldFlowerGameModel.Inst.mOpt; if (data.jiazhuList != null && data.jiazhuList.Count > 0) { SetAddBtnItemState(true); if (XXGoldFlowerGameModel.Inst.mLookCard) { InitAddList(XXGoldFlowerGameModel.Inst.mStartInfo.lookRate); } else { InitAddList(XXGoldFlowerGameModel.Inst.mStartInfo.menRate); } ShowAddBtnList(data.jiazhuList); } else { SetAddBtnItemState(false); } }
/// <summary> /// 清理数据 /// </summary> public void CleanMode(bool depth = false) { mComparingCard = false; mCanLookCard = false; mLookCard = false; mGameed = false; mTurnSeatId = 0; mZhuangSeatId = 0; mOpt = null; mChangDesk = false; mAutoGen = false; mHasCardSeatList.Clear(); mSelfLookCard = null; mCuoCarding = false; RoomState = eGFGameState.Ready; if (depth) { mPlayerInfoDic.Clear(); mSeatIdList.Clear(); } List <int> list = new List <int>(); list.AddRange(mPlayerInfoDic.Keys); for (int i = 0; i < list.Count; i++) { mPlayerInfoDic[list[i]].discard = false; } }