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

17 lines
402 B
C#
Executable File

using UnityEngine;
using UnityEngine.Events;
namespace SO.Channels
{
[CreateAssetMenu(menuName = "Channel/MachineChangeChannelSO")]
public class MachineChangeChannelSO : ScriptableObject
{
public UnityAction<MachineSO> OnMachineChange;
public void RaiseEvent(MachineSO machine)
{
OnMachineChange?.Invoke(machine);
}
}
}