Added lots of examples for editor customization
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Events
|
||||
{
|
||||
[CreateAssetMenu(fileName = "EventBroker", menuName = "Events/Event Broker")]
|
||||
public class EventBroker : ScriptableObject
|
||||
{
|
||||
public event Action PlayerDied;
|
||||
|
||||
public void RaisePlayerDied() => PlayerDied?.Invoke();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user