EVERYTHING
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
[DisallowMultipleComponent]
|
||||
public sealed class AbsoluteValueBehavior : GuardedValueNodeBehavior
|
||||
{
|
||||
protected override void RecomputeCore()
|
||||
{
|
||||
double inputNumber = GetInputNumber("Value");
|
||||
SetOutputValueIfChanged("Output", BSValue.FromNumber(Math.Abs(inputNumber)));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user