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

20 lines
494 B
C#
Raw Normal View History

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