18 lines
325 B
Haxe
18 lines
325 B
Haxe
package armory.logicnode;
|
|
|
|
class PauseTraitNode extends LogicNode {
|
|
|
|
public function new(tree: LogicTree) {
|
|
super(tree);
|
|
}
|
|
|
|
override function run(from: Int) {
|
|
var trait: Dynamic = inputs[1].get();
|
|
if (trait == null || !Std.isOfType(trait, LogicTree)) return;
|
|
|
|
cast(trait, LogicTree).pause();
|
|
|
|
runOutput(0);
|
|
}
|
|
}
|