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

14 lines
233 B
Haxe

package leenkx.logicnode;
class BranchNode extends LogicNode {
public function new(tree: LogicTree) {
super(tree);
}
override function run(from: Int) {
var b: Bool = inputs[1].get();
b ? runOutput(0) : runOutput(1);
}
}