Пример #1
0
 void AssetReferer.ReferAsset(AssetUnitInfo assetUnitInfo, AssetReferenceListener listener)
 {
     if (assetUnitInfo.reference.StartsWith("platform:"))
     {
         var json        = assetUnitInfo.reference.Substring(9);
         var pRef        = RequiredFuncs.FromJson <PlatformRef>(json);
         var auInfoClone = AssetUtils.CloneAssetRef(assetUnitInfo);
         auInfoClone.reference = pRef.defaultBuild;
         baseReferer.assetReferer.ReferAsset(auInfoClone, listener);
     }
 }