Exemple #1
0
 public static void OnReponse(object obj, NormalTask taskInfo)
 {
     if (obj is SCCanTaskResponse)
     {
         SCCanTaskResponse res = (SCCanTaskResponse)obj;
         if (res.TaskId == taskInfo.TaskConfID)
         {
             if (res.CanTask)
             {
                 GameEntryUILogic.S_CUR_EXCUTE_TASK_ID = res.TaskId;
                 OnExcuteTask(taskInfo);
             }
             else
             {
                 ConfTask confTask = ConfTask.Get(res.TaskId);
                 if (confTask == null)
                 {
                     return;
                 }
                 if (confTask.building != null && confTask.building.Length > 0)
                 {
                     ConfBuilding building = ConfBuilding.Get(confTask.building[0]);
                     if (building == null)
                     {
                         return;
                     }
                     PopUpManager.OpenNormalOnePop("task_unlock_tips", LocalizeModule.Instance.GetString(building.name));
                 }
             }
         }
     }
 }
Exemple #2
0
        private bool OnClickBuildIcon()
        {
            if (m_achorData == null)
            {
                return(false);
            }
            if (m_achorData.BuildStatus == 2)
            {
                if (IsChapterValid())
                {
                    FrameMgr.OpenUIParams param = new FrameMgr.OpenUIParams(UIDefine.UI_UNLOCK);
                    param.Param = m_achorData.m_buidID;
                    EngineCoreEvents.UIEvent.ShowUIEventWithParam.SafeInvoke(param);
                    return(false);
                }
                else
                {
                    GameEvents.ChapterEvents.OnChapterDownloadFinish += OnChapterDownloaded;
                    FrameMgr.OpenUIParams uiParams = new FrameMgr.OpenUIParams(UIDefine.UI_ChapterMap);
                    uiParams.Param = m_confBuilding.id;

                    EngineCoreEvents.UIEvent.ShowUIEventWithParam.SafeInvoke(uiParams);

                    return(false);
                }
            }
            else if (m_achorData.BuildStatus == 3)
            {
                if (m_confBuilding.unlockTask > 0)
                {
                    GlobalInfo.MY_PLAYER_INFO.PlayerTaskSystem.IsCompleteTaskByConfigID(m_confBuilding.unlockTask, (bool taskComplete) =>
                    {
                        if (!taskComplete)
                        {
                            string taskName   = string.Empty;
                            ConfTask confTask = ConfTask.Get(m_confBuilding.unlockTask);
                            if (confTask != null)
                            {
                                taskName = LocalizeModule.Instance.GetString(confTask.name);
                            }
                            if (GlobalInfo.MY_PLAYER_INFO.Level < m_confBuilding.unlockLevel)
                            {
                                PopUpManager.OpenNormalOnePop(LocalizeModule.Instance.GetString("map_clock_level_mission", m_confBuilding.unlockLevel, taskName));
                            }
                            else
                            {
                                PopUpManager.OpenNormalOnePop(LocalizeModule.Instance.GetString("group_unlock_tips", taskName));
                            }
                            return;
                        }
                    });
                }
                else
                {
                    PopUpManager.OpenNormalOnePop(LocalizeModule.Instance.GetString("map_clock_level", m_confBuilding.unlockLevel));
                }
                return(false);
            }
            return(true);
        }
        IEnumerator ITestNetwork()
        {
            //使用Get方式访问HTTP地址
            WWW www = new WWW("http://game.fotoable-conan.com/api-web/confirm/api");

            //等待服务器的响应
            yield return(www);

            //如果出现错误
            if (www.error != null)
            {
                m_isClick = false;
                //获取服务器的错误信息
                Debug.LogError(www.error);
                PopUpManager.OpenNormalOnePop("systen_unusual");

                yield return(null);
            }
            else
            {
                Debug.Log("net work is ok");

                //todo:临时写
                //this.GetVersion();

                if (ENUM_ACCOUNT_TYPE.E_GUEST == m_login_type)
                {
                    OnLoginButtonClick(null);
                }
                else
                {
                    OnFaceBookButtonClick(null);
                }
            }
        }
Exemple #4
0
        /// <summary>
        /// 此主线任务是否能完成
        /// </summary>
        private static void OnCheckMainTaskCanStart(NormalTask taskInfo)
        {
            ConfTask confTask = ConfTask.Get(taskInfo.TaskConfID);

            if (confTask == null)
            {
                return;
            }

            if (confTask.building != null && confTask.building.Length > 0)
            {
                ConfBuilding building = ConfBuilding.Get(confTask.building[0]);
                if (building == null)
                {
                    return;
                }

                if (!GameEvents.BigWorld_Event.OnCheckBuildStatusByID(building.id))
                {
                    PopUpManager.OpenNormalOnePop("task_unlock_tips", LocalizeModule.Instance.GetString(building.name));
                    return;
                }
            }

            GameEntryUILogic.S_CUR_EXCUTE_TASK_ID = taskInfo.TaskConfID;
            OnExcuteTask(taskInfo);
        }
Exemple #5
0
        public override void OnScResponse(object s)
        {
            base.OnScResponse(s);

            if (s is SCCombineResponse)
            {
                var rsp = s as SCCombineResponse;

                if (MsgStatusCodeUtil.OnError(rsp.Result))
                {
                    return;
                }

                if (false == rsp.Success)
                {
                    PopUpManager.OpenNormalOnePop(LocalizeModule.Instance.GetString("slots_luckTxt"));
                }
                else
                {
                    var raw_req          = EngineCoreEvents.SystemEvents.GetRspPairReq.SafeInvoke();
                    CSCombineRequest req = raw_req as CSCombineRequest;

                    m_view.RefreshCombinedPropCount(req.CombineId);
                }
            }
        }
Exemple #6
0
            private void OnNextGameStart(long id)
            {
                if (id != 10005)
                {
                    return;
                }
                string inputName = m_input.Text;

                if (string.IsNullOrEmpty(inputName))
                {
                    PopUpManager.OpenNormalOnePop(LocalizeModule.Instance.GetString("UI_PLAYERINFO_NICK_NULL"));
                    return;
                }
                if (EngineCore.Utility.CommonUtils.GetStringCount(inputName) > 20)
                {
                    PopUpManager.OpenNormalOnePop(LocalizeModule.Instance.GetString("UI_PLAYERINFO_NICK_OVERFLOW"));
                    return;
                }
                CSRenameRequest c2sRename = new CSRenameRequest();

                c2sRename.NewName  = inputName;
                c2sRename.PlayerId = GlobalInfo.MY_PLAYER_ID;
                GameEvents.NetWorkEvents.SendMsg.SafeInvoke(c2sRename);

                GameEvents.UI_Guid_Event.OnGuidNewEnd.SafeInvoke(10005);
                //GameEvents.UIEvents.UI_StartCartoon_Event.OnNext.SafeInvoke();
            }
Exemple #7
0
            private void OnNextBtn(GameObject obj)
            {
                //TimeModule.Instance.RemoveTimeaction(ChapterTimeout);
                EngineCoreEvents.AudioEvents.PlayAudio.SafeInvoke(Audio.AudioType.UISound, EngineCommonAudioKey.Button_Click_Common.ToString());
                if (m_IsEnd)
                {
                    GameEvents.UI_Guid_Event.OnGuidNewEnd.SafeInvoke(m_GuidID);
                    //GameEvents.UI_Guid_Event.OnStartGuidCartoonOver.SafeInvoke();
                    //GameEvents.UIEvents.UI_StartCartoon_Event.OnFinish.SafeInvoke();
                }
                else
                {
                    if (cartoonType == GuidStartCartoonType.HEAD)
                    {
                        if (!string.IsNullOrEmpty(m_HeadName))
                        {
                            CSPlayerRenewIconReq changeIconReq = new CSPlayerRenewIconReq();
                            changeIconReq.NewIcon = m_HeadName;
                            GameEvents.NetWorkEvents.SendMsg.SafeInvoke(changeIconReq);
                            GameEvents.UI_Guid_Event.OnGuidNewEnd.SafeInvoke(m_GuidID);
                            GameEvents.UIEvents.UI_StartCartoon_Event.OnNext.SafeInvoke();
                        }
                        else
                        {
                            PopUpManager.OpenNormalOnePop(LocalizeModule.Instance.GetString("guid_photo_no"));
                            //Debug.Log("Facebook Login,don't replace icon");
                            //GameEvents.UIEvents.UI_StartCartoon_Event.OnNext.SafeInvoke();
                            //GameEvents.UI_Guid_Event.OnGuidNewEnd.SafeInvoke(m_GuidID);
                            //GameEvents.UI_Guid_Event.OnStartGuidCartoonNext.SafeInvoke();
                        }
                    }
                    else if (cartoonType == GuidStartCartoonType.NAME)
                    {
                        string inputName = m_InputName.Text;
                        if (string.IsNullOrEmpty(inputName))
                        {
                            PopUpManager.OpenNormalOnePop(LocalizeModule.Instance.GetString("UI_PLAYERINFO_NICK_NULL"));
                            return;
                        }
                        if (EngineCore.Utility.CommonUtils.GetStringCount(inputName) > 20)
                        {
                            PopUpManager.OpenNormalOnePop(LocalizeModule.Instance.GetString("UI_PLAYERINFO_NICK_OVERFLOW"));
                            return;
                        }
                        CSRenameRequest c2sRename = new CSRenameRequest();
                        c2sRename.NewName  = inputName;
                        c2sRename.PlayerId = GlobalInfo.MY_PLAYER_ID;
                        GameEvents.NetWorkEvents.SendMsg.SafeInvoke(c2sRename);

                        GameEvents.UI_Guid_Event.OnGuidNewEnd.SafeInvoke(m_GuidID);
                        GameEvents.UIEvents.UI_StartCartoon_Event.OnNext.SafeInvoke();
                    }
                    else
                    {
                        GameEvents.UIEvents.UI_StartCartoon_Event.OnNext.SafeInvoke();
                    }
                }
            }
Exemple #8
0
        public void OnBuildClick()
        {
            //if (!SeekerGame.NewGuid.GuidNewManager.Instance.GetProgressByIndex(4))
            //{
            //    return;
            //}
            //todo//////////////////////////临时注释
            if (m_BuildID >= 4)
            {
                PopUpManager.OpenNormalOnePop(LocalizeModule.Instance.GetString("group_unlock_future_tips"));
                return;
            }

            if (status == 2)
            {
                FrameMgr.OpenUIParams param = new FrameMgr.OpenUIParams(UIDefine.UI_UNLOCK);
                param.Param = m_BuildID;
                EngineCoreEvents.UIEvent.ShowUIEventWithParam.SafeInvoke(param);
            }
            else if (status == 0)
            {
                if (m_confBuild.unlockTask > 0)
                {
                    GlobalInfo.MY_PLAYER_INFO.PlayerTaskSystem.IsCompleteTaskByConfigID(m_confBuild.unlockTask, (bool taskComplete) =>
                    {
                        if (!taskComplete)
                        {
                            string taskName   = string.Empty;
                            ConfTask confTask = ConfTask.Get(m_confBuild.unlockTask);
                            if (confTask != null)
                            {
                                taskName = LocalizeModule.Instance.GetString(confTask.name);
                            }
                            if (GlobalInfo.MY_PLAYER_INFO.Level < m_confBuild.unlockLevel)
                            {
                                PopUpManager.OpenNormalOnePop(LocalizeModule.Instance.GetString("map_clock_level_mission", m_confBuild.unlockLevel, taskName));
                            }
                            else
                            {
                                PopUpManager.OpenNormalOnePop(LocalizeModule.Instance.GetString("group_unlock_tips", taskName));
                            }
                            return;
                        }
                    });
                    // bool taskComplete = true;//GlobalInfo.MY_PLAYER_INFO.PlayerTaskSystem.IsCompleteTaskByConfigID(m_confBuild.unlockTask);
                }
                else
                {
                    PopUpManager.OpenNormalOnePop(LocalizeModule.Instance.GetString("map_clock_level", m_confBuild.unlockLevel));
                }
            }
        }
        private void OnResponse(object msg)
        {
            if (msg == null)
            {
                return;
            }
            if (msg is MarketResponse)
            {
                MarketResponse res = (MarketResponse)msg;
                if (res.Category == Category.Black)
                {
                    m_ChooseEffect.gameObject.transform.SetParent(m_MaskRoot, false);
                    m_blackdata   = ShopHelper.getShopData(res);
                    m_NeedReflash = true;
                    System.DateTime dt = CommonTools.TimeStampToDateTime(m_blackdata.m_NextReflashTime);
                    m_TotalSecond          = (float)(dt - System.DateTime.Now).TotalSeconds + 2;
                    m_curTime              = Time.time;
                    m_tradingTime_lab.Text = CommonTools.SecondToStringDDMMSS(m_TotalSecond);
                    ReflashShop(m_blackdata);
                }
                else if (res.Category == Category.Common)
                {
                    m_ChooseEffect.gameObject.transform.SetParent(m_MaskRoot, false);
                    m_propdata = ShopHelper.getShopData((res));
                    ReflashShop(m_propdata);
                }
            }
            else if (msg is MarkeFreshResponse)
            {
                MarkeFreshResponse res = (MarkeFreshResponse)msg;
                if (res.ResponseStatus == null)
                {
                    m_ChooseEffect.gameObject.transform.SetParent(m_MaskRoot, false);
                    GlobalInfo.MY_PLAYER_INFO.ChangeCash(-m_blackdata.m_reflashCost);

                    MarketResponse shopRes = new MarketResponse();
                    shopRes.MarketBlack = res.MarketBlack;
                    shopRes.MarketItems.Clear();
                    shopRes.MarketItems.Add(res.MarketItems);
                    shopRes.Category = Category.Black;
                    m_blackdata      = ShopHelper.getShopData(shopRes);
                    ReflashShop(m_blackdata);
                }
                else
                {
                    ResponseStatus resStatus = res.ResponseStatus;
                    PopUpManager.OpenNormalOnePop("shop_limite_times");
                }
            }
        }
Exemple #10
0
        private void NeedAnOfficerForEventGame(int idx_)
        {
            m_cur_dispath_index = idx_;

            if (EventGamePoliceDispatchManager.Instance.GetAllDispathOfficersID().Count == GlobalInfo.MY_PLAYER_INFO.Officer_infos.Count)
            {
                PopUpManager.OpenNormalOnePop("action_start_no_police");
                return;
            }

            GameEvents.UIEvents.UI_Enter_Event.Tell_GetAllDispatchedOfficerID += EventGamePoliceDispatchManager.Instance.GetAllDispathOfficersID;
            GameEvents.UIEvents.UI_Enter_Event.Tell_GetGameType += EventGamePoliceDispatchManager.Instance.GetGameType;
            EngineCoreEvents.UIEvent.ShowUIEvent.SafeInvoke(UIDefine.UI_SELECT_POLICE_GRID);
        }
        public override void Update()
        {
            base.Update();

            if (m_is_start_timer)
            {
                m_cur_time += Time.deltaTime;

                if (m_cur_time > 30)
                {
                    OccurEror();
                    PopUpManager.OpenNormalOnePop("systen_unusual");
                }
            }
        }
Exemple #12
0
        private void OnSure(GameObject obj)
        {
            ConfProp confProp = m_bagData.prop.prop;

            if (m_bagData.infoType == PropInfoTypeEnum.Use)
            {
                if (confProp.type == 3)
                {
                    EngineCoreEvents.AudioEvents.PlayAudio.SafeInvoke(Audio.AudioType.UISound, GameCustomAudioKey.gift_open.ToString());
                    CSDropReq req = new CSDropReq();
                    req.PropId = confProp.id;
                    req.Count  = m_curNum;
                    GameEvents.NetWorkEvents.SendMsg.SafeInvoke(req);
                }
                else
                {
                    EngineCoreEvents.AudioEvents.PlayAudio.SafeInvoke(Audio.AudioType.UISound, GameCustomAudioKey.item_use.ToString());
                    if (confProp.skillId <= 0)
                    {
                        PopUpManager.OpenNormalOnePop("skill not exits");
                    }
                    GameSkillManager.Instance.OnStartSkill(confProp.id, m_curNum);
                }
            }
            else if (m_bagData.infoType == PropInfoTypeEnum.Sale)
            {
                EngineCoreEvents.AudioEvents.PlayAudio.SafeInvoke(Audio.AudioType.UISound, GameCustomAudioKey.item_sold.ToString());
                PlayerPropSellRequest req        = new PlayerPropSellRequest();
                PlayerPropMsg         playerProp = new PlayerPropMsg();
                playerProp.PropId = confProp.id;
                playerProp.Count  = m_curNum;
                req.PlayerProps.Add(playerProp);
                GameEvents.NetWorkEvents.SendMsg.SafeInvoke(req);
                System.Collections.Generic.Dictionary <UBSParamKeyName, object> _params = new System.Collections.Generic.Dictionary <UBSParamKeyName, object>()
                {
                    { UBSParamKeyName.ContentID, confProp.id },
                    { UBSParamKeyName.ContentType, 1 },
                    { UBSParamKeyName.Description, UBSDescription.PROPSELL }
                };
                UserBehaviorStatisticsModules.Instance.LogEvent(UBSEventKeyName.Pror_use, 1.0f, _params);
            }
            //GameEvents.UIEvents.UI_Bag_Event.OnPropCost.SafeInvoke(confProp.id);
            //EngineCoreEvents.UIEvent.HideUIEvent.SafeInvoke(UIDefine.UI_BAGUSE);
        }
 void btnShop(GameObject obj)
 {
     if (!SeekerGame.NewGuid.GuidNewManager.Instance.GetProgressByIndex(8))
     {
         PopUpManager.OpenNormalOnePop("guid_shop_no");
         return;
     }
     if (GameEvents.UIEvents.UI_Bag_Event.GetCurrentBagType() == BagTypeEnum.Energy)
     {
         EngineCoreEvents.AudioEvents.PlayAudio.SafeInvoke(Audio.AudioType.UISound, EngineCommonAudioKey.Button_Click_Common.ToString());
         //EngineCoreEvents.UIEvent.ShowUIEvent.SafeInvoke(UIDefine.UI_SHOPENERGY);
         //EngineCoreEvents.UIEvent.ShowUIByOther.SafeInvoke(UIDefine.UI_SHOPENERGY, UIDefine.UI_BAG);
         EngineCoreEvents.UIEvent.ShowUIByOther.SafeInvoke(UIDefine.UI_SHOP, UIDefine.UI_BAG);
     }
     else
     {
         //GameEvents.UIEvents.UI_GameEntry_Event.OnOpenPanel.SafeInvoke(UIDefine.UI_SHOP);
         EngineCoreEvents.UIEvent.ShowUIByOther.SafeInvoke(UIDefine.UI_SHOP, UIDefine.UI_BAG);
     }
 }
Exemple #14
0
        private void OnBuyCallback(MarkeBuyResponse res)
        {
            if (m_itemdata == null || m_requestType != m_curShopType)
            {
                return;
            }
            if (res.ResponseStatus != null)  ////////////////TTTTT
            {
                PopUpManager.OpenNormalOnePop("shop_rmb_no");
            }
            else
            {
                if (m_itemdata.marketID == m_requestID)
                {
                    m_requestType = ShopType.None;
                    int cost = 0;
                    if (m_itemdata.m_hasDis)
                    {
                        cost = m_itemdata.m_disPrice * m_requestCount;
                    }
                    else
                    {
                        cost = m_itemdata.m_oriPrice * m_requestCount;
                    }
                    if (m_itemdata.m_costType == CostType.CostCash)
                    {
                        GlobalInfo.MY_PLAYER_INFO.ChangeCash(-cost);
                    }
                    else if (m_itemdata.m_costType == CostType.CostCoin)
                    {
                        GlobalInfo.MY_PLAYER_INFO.ChangeCoin(-cost);
                    }
                    PopUpManager.OpenNormalOnePop("shop_rmb_ok");
                    //CommonHelper.OpenGift(m_itemdata.m_prop.id, m_requestCount);

                    if (m_is_fast_buy)
                    {
                        if (12 != res.Props.PropId) //火锅
                        {
                            GlobalInfo.MY_PLAYER_INFO.AddSingleBagInfo(res.Props.PropId, res.Props.Count);

                            GameEvents.UIEvents.UI_GameEntry_Event.Listen_OnCombinePropCollected.SafeInvoke();
                        }
                        GameSkillManager.Instance.OnStartSkill(m_itemdata.m_prop.id, 1);
                    }
                    else
                    {
                        if (ShopType.Vit == m_curShopType)
                        {
                            ConfProp confProp = ConfProp.Get(m_itemdata.m_prop.id);
                            if (confProp != null && confProp.skillId != 26)
                            {
                                long itemID  = res.Props.PropId;
                                int  itemNum = res.Props.Count;

                                GlobalInfo.MY_PLAYER_INFO.AddSingleBagInfo(res.Props.PropId, res.Props.Count);
                                GameEvents.UIEvents.UI_Bag_Event.OnPropCost.SafeInvoke(m_itemdata.m_prop.id);

                                GameEvents.UIEvents.UI_GameEntry_Event.Listen_OnCombinePropCollected.SafeInvoke();
                            }
                            else if (confProp != null)
                            {
                                ConfSkill confskill = ConfSkill.Get(confProp.skillId);
                                VitManager.Instance.ReflashInfiniteVitTime(confskill.duration * 1000);
                            }
                        }
                    }

                    if (m_itemdata.m_limitNumber > 0)
                    {
                        --m_itemdata.m_limitNumber;

                        m_limited_buy_num_txt.Text = string.Format("({0}/{1})", m_itemdata.m_limitNumber, m_limited_max_num);

                        if (0 == m_itemdata.m_limitNumber)
                        {
                            m_limited_buy_btn.Enable = false;
                            m_limited_buy_btn.SetGray(true);
                        }
                        else
                        {
                            m_limited_buy_btn.Enable = true;
                            m_limited_buy_btn.SetGray(false);
                        }

                        this.SwitchButton();

                        return;
                    }


                    if (1 == m_itemdata.m_number && false == m_itemdata.m_hasDis)
                    {
                        this.SwitchButton();
                    }
                }
            }
        }
Exemple #15
0
        /// <summary>
        /// 购买回调
        /// </summary>
        /// <param name="res"></param>
        private void OnBuyCallback(MarkeBuyResponse res)
        {
            if (request_Type != m_curType)
            {
                return;
            }
            if (res.ResponseStatus != null)
            {
                PopUpManager.OpenNormalOnePop("shop_rmb_no");
                requestShopData();
            }
            else
            {
                if (request_ID == m_curChooseID)
                {
                    request_Type = ShopType.None;
                    ShopItemData curItemdata = getShopDataByID();
                    if (curItemdata != null)
                    {
                        //PopUpManager.OpenNormalOnePop("shop_rmb_ok");
                        ConfProp prop = ConfProp.Get(curItemdata.m_prop.id);
                        if (prop != null && prop.type != 3)
                        {
                            ResultWindowData windowDatas = new ResultWindowData(new List <ResultItemData> {
                                new ResultItemData(curItemdata.m_prop.id, total_prop_count)
                            });
                            FrameMgr.OpenUIParams param = new FrameMgr.OpenUIParams(UIDefine.UI_GIFTRESULT);
                            param.Param = windowDatas;
                            EngineCoreEvents.UIEvent.ShowUIEventWithParam.SafeInvoke(param);
                        }
                        //CommonHelper.OpenGift(curItemdata.m_prop.id, request_Market_Count);
                        if (curItemdata.m_limitNumber > 0)
                        {
                            curItemdata.m_limitNumber -= request_Market_Count;
                        }
                        m_shopInfo_com.setPanel(curItemdata, m_curType);
                        int cost = 0;
                        if (curItemdata.m_hasDis)
                        {
                            cost = curItemdata.m_disPrice * request_Market_Count;
                        }
                        else
                        {
                            cost = curItemdata.m_oriPrice * request_Market_Count;
                        }
                        GlobalInfo.MY_PLAYER_INFO.AddSingleBagInfo(curItemdata.m_prop.id, total_prop_count);

                        GameEvents.UIEvents.UI_GameEntry_Event.Listen_OnCombinePropCollected.SafeInvoke();

                        if (curItemdata.m_costType == CostType.CostCash)
                        {
                            GlobalInfo.MY_PLAYER_INFO.ChangeCash(-cost);
                        }
                        else if (curItemdata.m_costType == CostType.CostCoin)
                        {
                            GlobalInfo.MY_PLAYER_INFO.ChangeCoin(-cost);
                        }
                        Dictionary <UBSParamKeyName, object> _params = new Dictionary <UBSParamKeyName, object>()
                        {
                            { UBSParamKeyName.ContentID, curItemdata.marketID },
                            { UBSParamKeyName.NumItems, request_Market_Count }
                        };

                        if (m_curType == ShopType.Prop)
                        {
                            UserBehaviorStatisticsModules.Instance.LogEvent(UBSEventKeyName.shop_buy, null, _params);
                        }

                        if (curItemdata.m_limitNumber == 0 && m_curType == ShopType.Prop)
                        {
                            requestShopData();
                        }
                        else if (m_curType == ShopType.BlackMarket)
                        {
                            requestShopData();
                            UserBehaviorStatisticsModules.Instance.LogEvent(UBSEventKeyName.blackmarket_buy, null, _params);
                        }
                        //GlobalInfo.MY_PLAYER_INFO.SetCoin(res.PlayerBaseInfo.Coin);
                    }
                }
            }
        }