Beispiel #1
0
        internal override void Load()
        {
            bundleRequest = AssetsManger.LoadBundle(assetBundleName);
            var assetName = Path.GetFileName(url);

            asset = bundleRequest.assetBundle.LoadAsset(assetName, assetType);
        }
Beispiel #2
0
 internal override void Load()
 {
     if (!string.IsNullOrEmpty(assetBundleName))
     {
         bundleRequest = AssetsManger.LoadBundle(assetBundleName);
         if (bundleRequest != null)
         {
             SceneManager.LoadScene(sceneName, loadSceneMode);
         }
     }
     else
     {
         try
         {
             SceneManager.LoadScene(sceneName, loadSceneMode);
             loadState = LoadState.LoadAsset;
         }
         catch (Exception e)
         {
             Log.Error(e);
             error     = e.ToString();
             loadState = LoadState.Loaded;
         }
     }
 }
Beispiel #3
0
 internal override void Load()
 {
     _assetName = Path.GetFileNameWithoutExtension(url);
     if (GameUtility.Assets.runtimeMode)
     {
         _request           = AssetsManger.LoadBundle(_assetName.ToLower(), true);
         _request.completed = Request_completed;
         loadState          = LoadState.LoadAssetBundle;
     }
     else
     {
         loadState = LoadState.Loaded;
     }
 }