add scriptable object examples

add editor window example
add attribute + drawer example
This commit is contained in:
2025-06-13 18:07:18 +02:00
parent 0ae837c57b
commit a6dbfb224f
52 changed files with 1460 additions and 533 deletions
@@ -0,0 +1,13 @@
using System;
using UnityEngine;
namespace Events
{
[CreateAssetMenu(fileName = "EventBroker", menuName = "Events/Event Broker", order = 0)]
public class EventBroker : ScriptableObject
{
public event Action PlayerDied;
public void RaisePlayerDied() => PlayerDied?.Invoke();
}
}