Beispiel #1
0
 protected override void OnLoad()
 {
     request = Bundles.Load(Assets.GetBundleName(assetPath));
     if (Assets.IsTjFrame)
     {
         asset = request.LoadAsset(assetPath, assetType);
     }
     else
     {
         asset = request.LoadAsset(Assets.GetAssetName(assetPath), assetType);
     }
     //   asset = request.LoadAsset(Assets.GetAssetName(assetPath), assetType);
 }
Beispiel #2
0
 protected override void OnInit()
 {
     request = Bundles.Load(Assets.GetBundleName(assetPath));
     asset   = request.LoadAsset(Assets.GetAssetName(assetPath), assetType);
 }