Stratasys-450mc-VR/Assets/Scripts/SO/Channels/StepChangeChannelSO.cs

20 lines
494 B
C#
Executable File

using Sirenix.OdinInspector;
using UnityEngine;
using UnityEngine.Events;
namespace SO.Channels
{
[CreateAssetMenu(menuName = "Channel/StepChangeChannelSO")]
public class StepChangeChannelSO : ScriptableObject
{
[SerializeField, ReadOnly] private StepSO currentStep;
public UnityAction<StepSO> OnStepChanged;
public void RaiseEvent(StepSO step)
{
OnStepChanged?.Invoke(currentStep = step);
}
}
}