public static void SafeInvoke(this EnumBoolEvent e, Enum enumValue, Boolean boolValue) { if (e == null || enumValue == null) { return; } e.Invoke(enumValue, boolValue); }
public static void Subscribe(this EnumBoolEvent e, UnityAction <Enum, Boolean> action) { if (e == null || action == null) { return; } e.AddListener(action); }