using Sirenix.OdinInspector; using UnityEngine; using UnityEngine.AddressableAssets; using UnityEngine.Audio; namespace DanieleMarotta.RiversongCodeShowcase { [CreateAssetMenu(fileName = "ResourceNodeDefinition", menuName = "Riversong Code Showcase/Resource Node Definition")] public class ResourceNodeDefinition : GameDataAsset { public AssetReferenceT Prefab; public AudioResource DeleteAudio; public bool RandomRotation = true; public Vector2 ScaleRange = new(1, 1); [TitleGroup("Harvesting")] [LabelText("Agent")] public AgentDefinition HarvesterAgent; public ProductDefinition Product; [HorizontalGroup("Dropped Amount")] [LabelText("Dropped Min")] public int MinDroppedAmount = 10; [HorizontalGroup("Dropped Amount")] [LabelText("Dropped Max")] public int MaxDroppedAmount = 15; public AgentAnimation HarvestAnimation; public float HarvestPositionOffset = 0.5f; } }