riversong code showcase
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user