EVERYTHING
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using UnityEngine;
|
||||
|
||||
[DisallowMultipleComponent]
|
||||
public sealed class PulseBehavior : NodeBehavior
|
||||
{
|
||||
private bool previous;
|
||||
|
||||
public override void OnGraphUpdate()
|
||||
{
|
||||
if (base.IsAuthoritative)
|
||||
{
|
||||
bool flag = GetInputValue("Held").AsBool();
|
||||
if (flag && !previous)
|
||||
{
|
||||
TriggerOutput("Pulse");
|
||||
}
|
||||
previous = flag;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user