#nullable enable
namespace TagFighter.Effects.Steps
{
using System.Collections.Generic;
[StepType(StepTypeAttribute.ReleaseStep)]
public class DelayEffect : ReleaseStep
{
[UnityEngine.SerializeField]
SinglePort<bool> _in = new();
public override IEnumerable<IPort> Inputs {
get {
yield return _in;
}
}
public override bool IsValid => true;
public override string ToString() => "Delay Effect";
public override void Run(EffectInput blackBoard) {
if (_in.Node != null) {
blackBoard.Context.EffectStepsToTrigger.Add(_in.Node);
}
}
}
}