EVERYTHING
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using UnityEngine;
|
||||
|
||||
[DisallowMultipleComponent]
|
||||
public sealed class SignBehavior : GuardedValueNodeBehavior
|
||||
{
|
||||
protected override void RecomputeCore()
|
||||
{
|
||||
double inputNumber = GetInputNumber("Value");
|
||||
double value = ((inputNumber > 1E-07) ? 1.0 : ((inputNumber < -1E-07) ? (-1.0) : 0.0));
|
||||
SetOutputValueIfChanged("Output", BSValue.FromNumber(value));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user