public ResourceManager() { resManagerType = ResManagerType.ABB; Initialize(); if (resManagerType != ResManagerType.NO) { m_assetLoader.Initialize(resourcePath, "", null); } }
public void CreateResourceMgr(ResManagerBase resManager) { if (resourceDefine == null) { Debug.LogError("Resource define must init first!"); return; } ResManagerType type = resManager.ManagerType(); if (resManagers.ContainsKey(type)) { Debug.LogError("Resource manager already exist! type:" + type.ToString()); return; } this.resMgrType = type; resManager.Init(resourceDefine); resManagers.Add(type, resManager); }
public void ChangeResourceMgr(ResManagerType type) { this.resMgrType = type; resManager = resManagers[type]; }