Files
wub f0ff43f54a CLUB
clib lights and arragement along with fixes for new networking
2026-10-26 18:17:30 +00:00

23 lines
507 B
C#

using UnityEngine;
using UnityEngine.Events;
namespace UFMTESTING1
{
public class SplitBoolEvent : MonoBehaviour
{
[SerializeField] UnityEvent _onTrue;
[SerializeField] UnityEvent _onFalse;
[SerializeField] UnityEvent<bool> _onChangeInverted;
public void SetValue(bool value)
{
if (value)
_onTrue?.Invoke();
else
_onFalse?.Invoke();
_onChangeInverted?.Invoke(!value);
}
}
}