Exemplo n.º 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;
 }
Exemplo n.º 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();
        }
Exemplo n.º 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;
        }
Exemplo n.º 4
0
 public ABDownloader(string abName, Hash128 abHash)
 {
     this.abName    = abName;
     this.abHash    = abHash;
     abDownLoadPath = PathsUtility.GetWWWPath() + "/" + this.abName;
 }