2025-01-22 16:18:30 +01:00

21 lines
288 B
Haxe

package leenkx.logicnode;
class InverseNode extends LogicNode {
var c = false;
public function new(tree: LogicTree) {
super(tree);
tree.notifyOnUpdate(update);
}
override function run(from: Int) {
c = true;
}
function update() {
if (!c) runOutput(0);
c = false;
}
}