예제 #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)));
        }
예제 #2
0
 /// <summary>
 /// 返回是否加载了某个ab包
 /// </summary>
 public bool IsAssetBundleLoaded(string abName)
 {
     abName += GameHelper.GetABExt(Application.platform);
     return(GetLoader(abName).GetAssetBundle(abName) != null);
 }
예제 #3
0
 void Awake()
 {
     downloadPath     = GameHelper.GetDownloadPath(false);
     downloadLoadPath = GameHelper.GetDownloadPath();
 }