13 lines
314 B
C#
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));
|
|
}
|
|
}
|