Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- StartCoroutine (LoadAsset(i, asseturl[i],assetbundles[i]));
- }
- allmapchecked = true;
- }
- IEnumerator LoadAsset (int i,string asseturl,AssetBundle assetbundles)
- {
- using(WWW www = new WWW(asseturl))
- {
- yield return www;
- if(!string.IsNullOrEmpty(www.error))
- {
- Debug.Log(www.error);
- yield break;
- }
- assetbundles[i] = www.assetBundle;
- string[,] assetscenes[i] = assetbundles[i].GetAllScenePaths ();
- foreach (string sceneName in assetscenes)
- {
- Debug.Log(Path.GetFileNameWithoutExtension(sceneName));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement