mirror of
https://udrimavric.com/MAVRIC/Stratasys-450mc-VR.git
synced 2025-01-24 08:09:03 -05:00
19 lines
414 B
C#
19 lines
414 B
C#
|
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();
|
||
|
}
|
||
|
}
|
||
|
}
|