/// <summary> /// 基础界面组件 /// </summary> /// <param name="_ModelContorl"></param> /// <param name="_Agr">第一个参数 资源根路径</param> public override void Load(ModelContorlBase _ModelContorl, params object[] _Agr) { base.Load(_ModelContorl); string PrefabName = (string)_Agr[0]; GameObject UIRoot = null; switch (ShowLevel) { case UILevel.LowUI: UIRoot = ViewManagerModel.Instance.LowUIRoot; break; case UILevel.NormalUI: UIRoot = ViewManagerModel.Instance.NormalUIRoot; break; case UILevel.HightUI: UIRoot = ViewManagerModel.Instance.HightUIRoot; break; } UIGameobject = MyCentorl.CreateObj("Prefab", PrefabName, UIRoot); RectTransform rectTrans = UIGameobject.GetComponent <RectTransform>(); rectTrans.SetInsetAndSizeFromParentEdge(RectTransform.Edge.Left, 0, 0); rectTrans.SetInsetAndSizeFromParentEdge(RectTransform.Edge.Top, 0, 0); rectTrans.anchorMin = Vector2.zero; rectTrans.anchorMax = Vector2.one; }
public override void Load(ModelContorlBase _ModelContorl, params object[] _Agr) { searchPaths = new Dictionary <string, string>(); zipMap = new Dictionary <string, AssetBundle>(); base.Load(_ModelContorl); base.LoadEnd(); }
public override void Load(ModelContorlBase _ModelContorl, params object[] _Agr) { m_queue = new KeyedPriorityQueue <uint, TimerDataBase, ulong>(); m_stopWatch = new Stopwatch(); IsQueue = false; base.Load(_ModelContorl); base.LoadEnd(); }
public override void Load(ModelContorlBase _ModelContorl, params object[] _Agr) { base.Load(_ModelContorl, _Agr); Bundles = new Dictionary <string, Dictionary <string, AssetBundle> >(); Assets = new Dictionary <string, Dictionary <string, UnityEngine.Object> >(); ResourceInfo = JsonConvert.DeserializeObject <AppBuileInfo>(FilesTools.ReadFileToStr(AppConfig.AppAssetBundleAddress + "/AssetInfo.json")); LoadEnd(); }
protected void StartModel(string ModelName, ModelContorlBase _Model) { if (!Lock) { models[ModelName] = _Model; } else { Tmpmodels[ModelName] = _Model; } }
public override void Load(ModelContorlBase _ModelContorl, params object[] _Agr) { if (CoroutineModel.Instance == null) { LoggerHelper.Error("CoroutineModel User but No Load"); return; } CoroutineTasks = new List <CoroutineTask>(); base.Load(_ModelContorl); base.LoadEnd(); }
public override void Load(ModelContorlBase _ModelContorl, params object[] _Agr) { if (TimerModel.Instance == null) { LoggerHelper.Error("TimerModel User but No Load"); return; } Model_VP = new List <uint>(); base.Load(_ModelContorl); base.LoadEnd(); }
public override void Load(ModelContorlBase _ModelContorl, params object[] _Agr) { base.Load(_ModelContorl); NetWork_TCP(); if (SocketConnect() == ServiceModel.SOCKET_CODE.SUCCESS) { base.LoadEnd(); } else { LoggerHelper.Error("连接服务器失败"); } }
public override void Load(ModelContorlBase _ModelContorl, params object[] _Agr) { base.Load(_ModelContorl, _Agr); Assets = new Dictionary <string, Dictionary <string, Object> >(); string ConfigPath = Path.Combine(ToolsConfig.RelativeEditorResources, "PackingToolsSetting.asset"); Config = AssetDatabase.LoadAssetAtPath <PackingConfig>(ConfigPath); if (Config == null) { LoggerHelper.Error("资源编译配置文件没有生成 PackingConfig = null"); } LoadEnd(); }
public override void Load(ModelContorlBase _ModelContorl, params object[] _Agr) { ModelMusicPLayers = new Dictionary <string, ModelSoundPlayerData>(); base.Load(_ModelContorl, _Agr); }
public override void Load(ModelContorlBase _ModelContorl, params object[] _Agr) { AllTask = new List <CoroutineTask>(); base.Load(_ModelContorl); base.LoadEnd(); }
private bool IsDealMesageing; //消息处理中 public override void Load(ModelContorlBase _ModelContorl, params object[] _Agr) { ReceiveMessageQueue = new Queue <CSMessage>(); base.Load(_ModelContorl, _Agr); }
public override void Load(ModelContorlBase _ModelContorl, params object[] _Agr) { base.Load(_ModelContorl); base.LoadEnd(); }
public override void Load(ModelContorlBase _ModelContorl, params object[] _Agr) { Cheduler = (IScenesChedulerBase)_Agr[0]; base.Load(_ModelContorl); base.LoadEnd(); }
public virtual void Close() { MyCentorl = null; State = ModelCompBaseState.Close; }
public virtual void Load(ModelContorlBase _ModelContorl, params object[] _Agr) { MyCentorl = _ModelContorl; State = ModelCompBaseState.Loading; }
public override void Load(ModelContorlBase _ModelContorl, params object[] _Agr) { ShowLevel = UILevel.HightUI; base.Load(_ModelContorl, "LoadingView"); LoadProgress = UIGameobject.OnSubmit <Slider>("LoadProgress"); }