public ResourceManager()
 {
     resManagerType = ResManagerType.ABB;
     Initialize();
     if (resManagerType != ResManagerType.NO)
     {
         m_assetLoader.Initialize(resourcePath, "", null);
     }
 }
Beispiel #2
0
    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);
    }
Beispiel #3
0
 public void ChangeResourceMgr(ResManagerType type)
 {
     this.resMgrType = type;
     resManager      = resManagers[type];
 }