16 lines
229 B
Haxe
16 lines
229 B
Haxe
package armory.logicnode;
|
|
|
|
class AlternateNode extends LogicNode {
|
|
|
|
var b = true;
|
|
|
|
public function new(tree: LogicTree) {
|
|
super(tree);
|
|
}
|
|
|
|
override function run(from: Int) {
|
|
b ? runOutput(0) : runOutput(1);
|
|
b = !b;
|
|
}
|
|
}
|