private void OnGetCardTotalNum(DrawProbRes res) { LoadingOverlay.Instance.Hide(); DrawData drawData = GetData <DrawData>(); drawData.InitData(res); _view.SetTotalNum(drawData.GetTotalNum(DrawEventPB.GemBase)); }
private void OnGetCardList(DrawProbRes res) { LoadingOverlay.Instance.Hide(); DrawData drawData = GetData <DrawData>(); drawData.InitData(res); int id = GlobalData.ConfigModel.GetConfigByKey(GameConfigKey.DRAW_GEM_ITEM_ID); UserPropVo propVo = GlobalData.PropModel.GetUserProp(id); View.SetData(drawData.GetOwnNum(DrawPoolTypePB.DrawPoolCommon, DrawEventPB.GemBase), drawData.GetTotalNum(DrawPoolTypePB.DrawPoolCommon, DrawEventPB.GemBase), drawData.GetOwnNum(DrawPoolTypePB.DrawPoolCommon, DrawEventPB.GoldBase), drawData.GetTotalNum(DrawPoolTypePB.DrawPoolCommon, DrawEventPB.GoldBase), drawData.GetOwnNum(DrawPoolTypePB.DrawPoolActivity, DrawEventPB.GemBase), drawData.GetTotalNum(DrawPoolTypePB.DrawPoolActivity, DrawEventPB.GemBase), CostNum, propVo.Num ); }