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