using System.Collections.Generic; using UnityEngine; namespace SLZ.Marrow.Warehouse { public class MonoDisc : DataCard { [SerializeField] private MarrowAssetT _audioClip = new MarrowAssetT(); public MarrowAssetT AudioClip { get => _audioClip; set => _audioClip = value; } public override bool IsBundledDataCard() { return true; } public override void ImportPackedAssets(Dictionary packedAssets) { base.ImportPackedAssets(packedAssets); if (packedAssets.TryGetValue("AudioClip", out var packedAsset)) AudioClip = new MarrowAssetT(packedAsset.marrowAsset.AssetGUID); } public override List ExportPackedAssets() { base.ExportPackedAssets(); PackedAssets.Add(new PackedAsset("AudioClip", AudioClip, AudioClip.AssetType, "_audioClip")); return PackedAssets; } #if UNITY_EDITOR public override void GeneratePackedAssets(bool saveAsset = true) { base.GeneratePackedAssets(saveAsset); } #endif } }