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

            asset = bundleRequest.assetBundle.LoadAsset(assetName, assetType);
        }
Esempio n. 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;
         }
     }
 }
Esempio n. 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;
     }
 }