armory/Sources/armory/logicnode/PauseTilesheetNode.hx

21 lines
326 B
Haxe
Raw Normal View History

2017-09-23 21:39:12 +02:00
package armory.logicnode;
2017-11-20 15:16:52 +01:00
import iron.object.MeshObject;
2017-09-23 21:39:12 +02:00
class PauseTilesheetNode extends LogicNode {
2019-12-19 23:54:08 +01:00
public function new(tree: LogicTree) {
2017-09-23 21:39:12 +02:00
super(tree);
}
2019-12-19 23:54:08 +01:00
override function run(from: Int) {
var object: MeshObject = inputs[1].get();
2017-09-23 21:39:12 +02:00
if (object == null) return;
object.tilesheet.pause();
2018-10-22 10:10:33 +02:00
runOutput(0);
2017-09-23 21:39:12 +02:00
}
}