19 lines
414 B
C#
Raw Normal View History

2023-11-01 10:51:29 -04:00
using Sirenix.OdinInspector;
using UnityEngine;
using UnityEngine.Events;
namespace SO.Channels
{
[CreateAssetMenu(menuName = "Channel/SimpleChannelSO")]
public class SimpleChannelSO : ScriptableObject
{
public UnityAction OnEventRaised;
[DisableInEditorMode, Button]
public void RaiseEvent()
{
OnEventRaised?.Invoke();
}
}
}