17 lines
276 B
C#
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();
|
||
|
}
|
||
|
}
|