armory/Sources/armory/logicnode/ResumeTraitNode.hx
2018-10-22 10:10:33 +02:00

18 lines
318 B
Haxe

package armory.logicnode;
class ResumeTraitNode extends LogicNode {
public function new(tree:LogicTree) {
super(tree);
}
override function run(from:Int) {
var trait:Dynamic = inputs[1].get();
if (trait == null || !Std.is(trait, LogicTree)) return;
cast(trait, LogicTree).resume();
runOutput(0);
}
}