using UnityEngine; [DisallowMultipleComponent] public sealed class XORBehavior : GuardedValueNodeBehavior { protected override void RecomputeCore() { bool flag = GetInputValue("A").AsBool(); bool flag2 = GetInputValue("B").AsBool(); SetOutputValueIfChanged("Result", BSValue.FromBool(flag ^ flag2)); } }