riversong code showcase

This commit is contained in:
Daniele Marotta
2026-05-21 15:52:18 +02:00
commit 4c9eea1c02
462 changed files with 23406 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
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<GameObject> 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;
}
}