11 lines
258 B
C#
11 lines
258 B
C#
using UnityEngine;
|
|
|
|
[DisallowMultipleComponent]
|
|
public sealed class AddBehavior : GuardedValueNodeBehavior
|
|
{
|
|
protected override void RecomputeCore()
|
|
{
|
|
SetOutputValueIfChanged("Output", BSValue.FromNumber(GetInputNumber("A") + GetInputNumber("B")));
|
|
}
|
|
}
|