12 lines
274 B
C#
12 lines
274 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
[DisallowMultipleComponent]
|
|
public sealed class RoundNumberBehavior : GuardedValueNodeBehavior
|
|
{
|
|
protected override void RecomputeCore()
|
|
{
|
|
SetOutputValueIfChanged("Output", BSValue.FromNumber(Math.Round(GetInputNumber("Value"))));
|
|
}
|
|
}
|