public override void Awake() { base.Awake(); var t = mDMono.transform; _controllerILR = t.GetComponentInParent <UIControllerILR>(); Transform store_root = _controllerILR.transform; m_Scroll = store_root.GetMonoILRComponent <UIStoreGridScroll>("Store/NewBlacksmithView/BlacksmithViews/Shared/SlotsContainer/Placeholder/Grid"); m_GetDataRequest = t.GetComponent <UIServerRequest>("Extra/Get"); m_RefreshRequest = t.GetComponent <UIServerRequest>("Extra/Refresh"); m_BuyRequest = store_root.GetComponent <UIServerRequest>("Store/NewBlacksmithView/BlacksmithViews/Shared/Extra/Buy"); RefreshBtnRoot = store_root.GetComponent <UIButton>("Store/BGs/Bottom/Button", false); RefreshCostLabel = store_root.GetComponent <UILabel>("Store/BGs/Bottom/Button/Cost/Diamand/Label", false); m_RefreshTimeLabel = store_root.GetComponent <UILabel>("Store/BGs/Bottom/RefreshTime", false); RefreshCostSprite = store_root.GetComponent <UISprite>("Store/BGs/Bottom/Button/Cost/Diamand/Sprite", false); NewCurrencyCommonLabel = store_root.GetComponent <UILabel>("UINormalFrameBG/NewCurrency/Table/1_Common/Label"); NewCurrencyCommonSprite = store_root.GetComponent <UISprite>("UINormalFrameBG/NewCurrency/Table/1_Common/Icon"); RefreshFxObj = store_root.FindEx("Store/NewBlacksmithView/BlacksmithViews/Shared/Fx").gameObject; UIServerRequestHotFix mysGetRequest = t.GetMonoILRComponent <UIServerRequestHotFix>("Extra/Get"); mysGetRequest.response = OnRequestStoreData; t.GetComponent <UIServerRequest>("Extra/Get").onResponse.Add(new EventDelegate(mysGetRequest.mDMono, "OnFetchData")); UIServerRequestHotFix mysRefreshRequest = t.GetMonoILRComponent <UIServerRequestHotFix>("Extra/Refresh"); mysRefreshRequest.response = OnRefresh; t.GetComponent <UIServerRequest>("Extra/Refresh").onResponse.Add(new EventDelegate(mysRefreshRequest.mDMono, "OnFetchData")); UIServerRequestHotFix buyRequest = t.parent.GetMonoILRComponent <UIServerRequestHotFix>("Shared/Extra/Buy"); if (buyRequest.response == null) { buyRequest.response = OnBuy; t.parent.GetComponent <UIServerRequest>("Shared/Extra/Buy").onResponse.Add(new EventDelegate(buyRequest.mDMono, "OnFetchData")); } m_DataID = mDMono.StringParamList[0]; m_StoreType = mDMono.StringParamList[1]; m_StoreName = mDMono.StringParamList[2]; m_StoreId = mDMono.IntParamList[0]; m_Columns = mDMono.IntParamList[1]; CronRefreshExcuter re = CreateShopRefresher(); AutoRefreshingManager.Instance.AddCronRefreshExcuter(re); }