forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
12
leenkx/Sources/leenkx/logicnode/RandomOutputNode.hx
Normal file
12
leenkx/Sources/leenkx/logicnode/RandomOutputNode.hx
Normal file
@ -0,0 +1,12 @@
|
||||
package leenkx.logicnode;
|
||||
|
||||
class RandomOutputNode extends LogicNode {
|
||||
|
||||
public function new(tree: LogicTree) {
|
||||
super(tree);
|
||||
}
|
||||
|
||||
override function run(from: Int) {
|
||||
runOutput(Std.random(outputs.length));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user