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