armory/Sources/armory/logicnode/InverseNode.hx

21 lines
288 B
Haxe
Raw Normal View History

2018-02-20 18:46:16 +01:00
package armory.logicnode;
class InverseNode extends LogicNode {
var c = false;
2019-12-19 23:54:08 +01:00
public function new(tree: LogicTree) {
2018-02-20 18:46:16 +01:00
super(tree);
tree.notifyOnUpdate(update);
}
2019-12-19 23:54:08 +01:00
override function run(from: Int) {
2018-02-20 18:46:16 +01:00
c = true;
}
function update() {
2018-10-22 10:10:33 +02:00
if (!c) runOutput(0);
2018-02-20 18:46:16 +01:00
c = false;
}
}