EVERYTHING
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
[DisallowMultipleComponent]
|
||||
public sealed class SequenceBehavior : NodeBehavior
|
||||
{
|
||||
private int index;
|
||||
|
||||
public override void OnRun(string inputPortName)
|
||||
{
|
||||
if (base.IsAuthoritative && string.Equals(inputPortName, "Next", StringComparison.Ordinal))
|
||||
{
|
||||
index = (index + 1) % 6;
|
||||
TriggerOutput($"Out {index + 1}");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user