namespace XNode.Examples.LogicToy {
[NodeWidth(140)]
public class PulseNode : LogicNode {
public float interval = 1f;
[Output] public LogicNode output;
public override bool on { get { return false; } }
/// Called from editor
public void FirePulse() {
SendPulse(GetPort("output"));
}
/// This node has no inputs, so this does nothing
protected override void OnTrigger() { }
}
}