Files
LNXSDK/leenkx/Sources/leenkx/logicnode/WaitForNode.hx
2025-01-22 16:18:30 +01:00

19 lines
310 B
Haxe

package leenkx.logicnode;
class WaitForNode extends LogicNode {
var froms: Array<Int> = [];
public function new(tree: LogicTree) {
super(tree);
}
override function run(from: Int) {
if(!froms.contains(from)) froms.push(from);
if(inputs.length == froms.length){ runOutput(0); froms = []; }
}
}