1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 17:26:02 +08:00
xNode/Examples/LogicToy/Nodes/PulseNode.cs
2019-09-24 00:49:00 +02:00

16 lines
445 B
C#

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; } }
/// <summary> Called from editor </summary>
public void FirePulse() {
SendPulse(GetPort("output"));
}
/// <summary> This node has no inputs, so this does nothing </summary>
protected override void OnTrigger() { }
}
}