armory/Sources/armory/logicnode/InverseNode.hx
2019-12-19 23:54:08 +01:00

21 lines
288 B
Haxe

package armory.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;
}
}