/// <summary>
        /// Initializes a new instance of the <see cref="Hellgate.AssetBundleInitalDownloader"/> class.
        /// Examples url : https://dl.dropboxusercontent.com/u/95277951/hellgate/fd3caab6ae1a959fd769a2a3ed9344e5adc98402/pc/resource.json
        /// </summary>
        /// <param name="baseUrl">Base URL.</param>
        /// <param name="name">Name.</param>
        /// <param name="assetExtension">Asset extension.</param>
        public AssetBundleInitialDownloader(string url, string baseUrl = "", string assetExtension = "unity3d")
        {
            AssetBundleData.BASE_URL = baseUrl;
            AssetBundleData.EXTENSION = assetExtension;

            assetBundleManager = AssetBundleManager.Instance;
            httpManager = HttpManager.Instance;

            httpData = new HttpData (url);
            httpData.popUp = false;
            httpData.finishedDelegate = Callback;
        }
Пример #2
0
        protected virtual void Awake ()
        {
            if (instance == null) {
                instance = this;

#if !UNITY_5_3 && !UNITY_5_4
                DontDestroyOnLoad (gameObject);
#endif
            }

            popUp = null;
        }