forked from LeenkxTeam/LNXSDK
19 lines
310 B
Haxe
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 = []; }
|
|
|
|
}
|
|
|
|
}
|