Exemple #1
0
        public IEnumerator LoadAssetAsync <T>(string ab, string asset) where T : UnityEngine.Object
        {
            string abName = ab + GameHelper.GetABExt(Application.platform);

            yield return(StartCoroutine(GetLoader(abName).LoadAssetAsync <T>(abName, asset)));
        }
Exemple #2
0
 /// <summary>
 /// 返回是否加载了某个ab包
 /// </summary>
 public bool IsAssetBundleLoaded(string abName)
 {
     abName += GameHelper.GetABExt(Application.platform);
     return(GetLoader(abName).GetAssetBundle(abName) != null);
 }
Exemple #3
0
 void Awake()
 {
     downloadPath     = GameHelper.GetDownloadPath(false);
     downloadLoadPath = GameHelper.GetDownloadPath();
 }