Stratasys-450mc-VR/Assets/Scripts/SO/Channels/SimpleChannelSO.cs
2023-11-01 10:51:29 -04:00

19 lines
414 B
C#
Executable File

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();
}
}
}