示例#1
0
        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
        }
示例#2
0
 public void CleanUp()
 {
     DataModel      = new EquipInfoDataModel();
     mIsInit        = true;
     GET_PATH_COUNT = 0;
     Table.ForeachItemGetInfo(
         record =>
     {
         GET_PATH_COUNT++;
         return(true);
     }
         );
 }
示例#3
0
 public void CleanUp()
 {
     DataModel = new EquipInfoDataModel();
     mIsInit   = true;
 }
示例#4
0
 public void CleanUp()
 {
     DataModel     = new ArtifactDataModel();
     InfoDatamodel = new EquipInfoDataModel();
 }