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