Files
BlockSpace-v1.5.0b/Assets/Scripts/Assembly-CSharp/XORBehavior.cs
T
2026-06-01 17:19:55 +02:00

13 lines
314 B
C#

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));
}
}