private void OnEnable() { #if !UNITY_EDITOR try { #endif var controllerBase = UIManager.Instance.GetController(UIConfig.ArtifactUi); if (controllerBase == null) { return; } equipDataModel = controllerBase.GetDataModel("EquipInfo") as EquipInfoDataModel; if (equipDataModel == null) { return; } Binding.SetBindDataSource(controllerBase.GetDataModel("")); Binding.SetBindDataSource(controllerBase.GetDataModel("EquipInfo")); EventDispatcher.Instance.AddEventListener(EnableFrameEvent.EVENT_TYPE, OnEvent_EquipmentInfo); EventDispatcher.Instance.AddEventListener(PlayCgEvent.EVENT_TYPE, OnEvent_PlayCg); EventDispatcher.Instance.AddEventListener(UpdateMaYaUIModelEvent.EVENT_TYPE, OnRefreshMaYaUIModel); EventDispatcher.Instance.AddEventListener(MaYaWuQiDestoryModel_Event.EVENT_TYPE, DestoryModelEvent); AddEnableCount(1); #if !UNITY_EDITOR } catch (Exception ex) { Logger.Error(ex.ToString()); } #endif }
public void CleanUp() { DataModel = new EquipInfoDataModel(); mIsInit = true; GET_PATH_COUNT = 0; Table.ForeachItemGetInfo( record => { GET_PATH_COUNT++; return(true); } ); }
public void CleanUp() { DataModel = new EquipInfoDataModel(); mIsInit = true; }
public void CleanUp() { DataModel = new ArtifactDataModel(); InfoDatamodel = new EquipInfoDataModel(); }