private void OnEnable() { #if !UNITY_EDITOR try { #endif EventDispatcher.Instance.DispatchEvent(new MieShiDisappearModelRoot_Event(false)); // SellMessage.SetActive(false); UseMessage.SetActive(false); var controllerBase = UIManager.Instance.GetController(UIConfig.ChestInfoUI); BindRoot.SetBindDataSource(controllerBase.GetDataModel("")); isEnable = true; ClientDataModel.ItemInfoDataModel iidm = controllerBase.GetDataModel("ItemInfoDataModel") as ClientDataModel.ItemInfoDataModel; // if(iidm.GetPathList() != null && ) BindRoot.SetBindDataSource(iidm); #if !UNITY_EDITOR } catch (Exception ex) { Logger.Error(ex.ToString()); } #endif }
private void OnEnable() { #if !UNITY_EDITOR try { #endif EventDispatcher.Instance.DispatchEvent(new MieShiDisappearModelRoot_Event(false)); // SellMessage.SetActive(false); UseMessage.SetActive(false); var controllerBase = UIManager.Instance.GetController(UIConfig.ChestInfoUI); BindRoot.SetBindDataSource(controllerBase.GetDataModel("")); ClientDataModel.ItemInfoDataModel iidm = controllerBase.GetDataModel("ItemInfoDataModel") as ClientDataModel.ItemInfoDataModel; // if(iidm.GetPathList() != null && ) BindRoot.SetBindDataSource(iidm); { var __list2 = Layout; var __listCount2 = __list2.Count; for (var __i2 = 0; __i2 < __listCount2; ++__i2) { var layout = __list2[__i2]; { layout.ResetLayout(); } } } PutInCenter(); ResetDescribe(); ResetSellPut(); #if !UNITY_EDITOR } catch (Exception ex) { Logger.Error(ex.ToString()); } #endif }