r2mods/ilspy_dump/ror2_csproj/RoR2.EntityLogic/BoolEventSplitter.cs

17 lines
276 B
C#

using UnityEngine;
using UnityEngine.Events;
namespace RoR2.EntityLogic;
public class BoolEventSplitter : MonoBehaviour
{
public UnityEvent trueEvent;
public UnityEvent falseEvent;
public void CallEvent(bool value)
{
(value ? trueEvent : falseEvent)?.Invoke();
}
}