EVERYTHING
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
using UnityEngine;
|
||||
|
||||
[DisallowMultipleComponent]
|
||||
public sealed class GetPlayerByNumberBehavior : NodeBehavior
|
||||
{
|
||||
public override void OnGraphUpdate()
|
||||
{
|
||||
int num = Mathf.RoundToInt((float)GetInputNumber("Number"));
|
||||
SetLocalOutputValueIfChanged("Player", (num > 0) ? BSValue.FromPlayer(num) : BSValue.None);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user