void AssetReferenceListener.EnsureDependencyLocalized(AssetRequestUnit assetRequest) { var lisetner = new JustLookAUSListener(); parent.localizedAssetSupplier.SupplyAssetUnit(assetRequest, lisetner); if (!lisetner.didSupply) { parent.installListener.OnDependencyRequired(assetRequest); } }
bool CheckDependencyAndCollectInterface(AssetInterface localAssetInterface) { //check if all dependencies are clear here var lis = new EasyTaker <AssetRequest>(); localAssetInterface.referer.PickAssetByType(lis); bool isDependencyCheckOK = true; if (lis.chosen != null) { var lisetner = new JustLookAUSListener(); foreach (var assetReqUnit in lis.chosen.units) { localizedAssetSupplier.SupplyAssetUnit(assetReqUnit, lisetner); if (!lisetner.didSupply) { installListener.OnDependencyRequired(assetReqUnit); isDependencyCheckOK = false; } } } return(isDependencyCheckOK); }