Пример #1
0
        public static void LoadByName(string name, ResourceLoader.EndLoadBundle endLoad, System.Object obj, bool assetBundle = false)
        {
            if (instance == null || instance.platformLoader == null)
            {
                return;
            }

            string destName;
            string path;
            int    size;
            bool   encrypt;

            Example.VersionFile.Type fileType;
            ResUpdate.GetLoadDetails(name, out destName, out path, out size, out encrypt, out fileType);
            if (path == null)
            {
                Debugger.LogWarning("load name is not exist in version->" + name);
                if (endLoad != null)
                {
                    endLoad(null, obj);
                }
                return;
            }

            LoadByPath(name, destName, path, fileType, size, endLoad, obj, assetBundle);
        }
Пример #2
0
 public void LoadBundle(string originName, string destName, string path, Example.VersionFile.Type fileType, ResourceLoader.EndLoadBundle endLoad, object obj, bool assetBundle = false)
 {
     throw new NotImplementedException();
 }
Пример #3
0
 internal static void LoadByPath(string originName, string destName, string path, Example.VersionFile.Type fileType, int totalSize, ResourceLoader.EndLoadBundle endLoad, System.Object obj, bool assetBundle = false)
 {
     if (instance == null || instance.platformLoader == null)
     {
         return;
     }
     instance.platformLoader.LoadBundle(originName, destName, path, fileType, endLoad, obj, assetBundle);
 }