EVERYTHING
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
[DisallowMultipleComponent]
|
||||
public sealed class IfBehavior : NodeBehavior
|
||||
{
|
||||
public override void OnRun(string inputPortName)
|
||||
{
|
||||
if (base.IsAuthoritative && string.Equals(inputPortName, "If", StringComparison.Ordinal))
|
||||
{
|
||||
if (GetInputValue("Condition").AsBool())
|
||||
{
|
||||
TriggerOutput("True");
|
||||
}
|
||||
else
|
||||
{
|
||||
TriggerOutput("False");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user