12 lines
298 B
C#
12 lines
298 B
C#
using UnityEngine;
|
|
|
|
[DisallowMultipleComponent]
|
|
public sealed class NANDBehavior : GuardedValueNodeBehavior
|
|
{
|
|
protected override void RecomputeCore()
|
|
{
|
|
bool value = !GetInputValue("A").AsBool() || !GetInputValue("B").AsBool();
|
|
SetOutputValueIfChanged("Result", BSValue.FromBool(value));
|
|
}
|
|
}
|