示例#1
0
 public void DeleteLoaderProxy(string _name)
 {
     if (Proxies.ContainsKey(_name))
     {
         if (Proxies[_name] == DefaultProxy)
         {
             DefaultProxy = null;
         }
         Proxies.Remove(_name);
     }
 }
示例#2
0
        public void CreateLoaderProxy(string _name, string _path, bool _isDefaultLoader)
        {
            UAssetBundleLoaderProxy proxy = new UAssetBundleLoaderProxy(_path, FinalLoader);

            if (Proxies.ContainsKey(_name))
            {
                var curr = Proxies[_name];
                Proxies[_name] = proxy;

                if (curr == DefaultProxy)
                {
                    DefaultProxy = proxy;
                }
            }
            else
            {
                Proxies.Add(_name, proxy);
            }

            if (DefaultProxy == null || _isDefaultLoader)
            {
                DefaultProxy = proxy;
            }
        }