armory/Sources/armory/logicnode/ThisNode.hx

24 lines
412 B
Haxe
Raw Normal View History

2016-08-22 21:56:28 +02:00
package armory.logicnode;
2016-08-14 21:08:01 +02:00
import armory.trait.internal.NodeExecutor;
class ThisNode extends Node {
2016-08-25 00:26:01 +02:00
public var target:iron.object.Object;
2016-08-14 21:08:01 +02:00
public function new() {
super();
}
public override function start(executor:NodeExecutor, parent:Node = null) {
super.start(executor, parent);
2016-08-25 00:26:01 +02:00
target = executor.object;
2016-08-14 21:08:01 +02:00
}
public static function create():ThisNode {
var n = new ThisNode();
return n;
}
}