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