Пример #1
0
    public override Object LoadAsset(string name, Type t)
    {
        Check();
        string path = mResConfig.GetCfg(name).gamePath;

        return(UnityEditor.AssetDatabase.LoadAssetAtPath(path, t));
    }
Пример #2
0
    public override void RemoveAsset(string resName)
    {
        string abName = mResConfig.GetCfg(resName).abName;

        if (mBundleDic.ContainsKey(abName))
        {
            mBundleDic[abName].UnLoad();
            List <string> list = mBundleDic[abName].GetClearBundle();
            foreach (var name in list)
            {
                mBundleDic.Remove(name);
            }
        }
    }