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 PickerNode extends Node {
|
|
|
|
|
|
|
|
public var target:iron.node.Node;
|
|
|
|
public var property0:String;
|
|
|
|
|
|
|
|
public function new() {
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
|
|
|
|
public override function start(executor:NodeExecutor, parent:Node = null) {
|
|
|
|
super.start(executor, parent);
|
|
|
|
executor.notifyOnNodeInit(init);
|
|
|
|
}
|
|
|
|
|
|
|
|
function init() {
|
2016-08-29 09:56:34 +02:00
|
|
|
target = iron.Scene.active.getChild(property0);
|
2016-08-14 21:08:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public static function create(_property0:String):PickerNode {
|
|
|
|
var n = new PickerNode();
|
|
|
|
n.property0 = _property0;
|
|
|
|
return n;
|
|
|
|
}
|
|
|
|
}
|