Развитие системы растений

This commit is contained in:
ThomasCharester committed 2026-03-02 18:25:46 +03:00
1 parent 1b578067f3
commit ba49ef5015
218 files changed
+70415 -1519

No files matched your search

@@ -32,15 +32,21 @@ namespace Code.Infrastructure.Configs
}
private async UniTaskVoid SetupMasks(IConfigLocator configLocator, EventBus.EventBus eventBus)
{
var handle =
Addressables.LoadAssetsAsync<LayerMasksConfigConfig>(
configLocator.TryGetManyConfigAssetReferences<LayerMasksConfigConfig>(), null, Addressables.MergeMode.Union);
var label = configLocator.TryGetManyConfigAssetReferences<LayerMasksConfigConfig>();
if ((await Addressables.LoadResourceLocationsAsync(label).Task).Count != 0)
{
await handle.ToUniTask();
var handle =
Addressables.LoadAssetsAsync<LayerMasksConfigConfig>(
label, null, Addressables.MergeMode.Union);
SetMasks(handle.Result);
await handle.ToUniTask();
Addressables.Release(handle);
SetMasks(handle.Result);
Addressables.Release(handle);
}
eventBus.RaiseEvent<ILayerMasksInitializedHandle>(x => x.LayerMasksInitialized());
}