Example #1
0
 public ABLoader(string abName, Hash128 abHash = new Hash128(), ABLoadStart onLoadStart = null, ABLoadUpdate onLoadUpdate = null, ABLoadCompleted onLoadCompleted = null)
 {
     assetLoader          = null;
     this.abName          = abName;
     this.abHash          = abHash;
     this.onLoadStart     = onLoadStart;
     this.onLoadUpdate    = onLoadUpdate;
     this.onLoadCompleted = onLoadCompleted;
     abDownLoadPath       = PathsUtility.GetWWWPath() + "/" + this.abName;
 }
Example #2
0
        public void Start()
        {
            platformName = PathsUtility.GetPlatformName();
            abOutPath    = PathsUtility.GetABOutPath();
            listener     = new HttpListener();
            listener.Prefixes.Add(settings.URL);
            listener.AuthenticationSchemes = AuthenticationSchemes.Anonymous;
            listener.Start();

            listenerThread = new Thread(StartListener);
            listenerThread.Start();
        }
Example #3
0
        private ABManifestLoader()
        {
            manifestName       = PathsUtility.GetPlatformName();
            manifestRemotePath = PathsUtility.GetWWWPath() + "/" + manifestName;
#if UNITY_EDITOR
            manifestLocalPath = PathsUtility.GetABOutPath() + "Cache/" + manifestName;
#else
            manifestLocalPath = PathsUtility.GetABOutPath() + "/" + manifestName;
#endif
            manifest        = null;
            abReadManifest  = null;
            AssetBundleList = new List <string>();
            IsLoadCompleted = false;
        }
Example #4
0
 public ABDownloader(string abName, Hash128 abHash)
 {
     this.abName    = abName;
     this.abHash    = abHash;
     abDownLoadPath = PathsUtility.GetWWWPath() + "/" + this.abName;
 }