Files
LNXSDK/leenkx/Sources/leenkx/logicnode/PauseTilesheetNode.hx

21 lines
354 B
Haxe

package leenkx.logicnode;
import iron.object.MeshObject;
class PauseTilesheetNode extends LogicNode {
public function new(tree: LogicTree) {
super(tree);
}
override function run(from: Int) {
var object: MeshObject = inputs[1].get();
if (object == null || object.tilesheet == null) return;
object.tilesheet.pause();
runOutput(0);
}
}