forked from LeenkxTeam/Leenkx_Examples
update
This commit is contained in:
14
script_linkedgroup/Sources/lnx/PinSpawner.hx
Normal file
14
script_linkedgroup/Sources/lnx/PinSpawner.hx
Normal file
@ -0,0 +1,14 @@
|
||||
package lnx;
|
||||
|
||||
class PinSpawner extends iron.Trait {
|
||||
public function new() {
|
||||
super();
|
||||
|
||||
notifyOnUpdate(function() {
|
||||
var mouse = iron.system.Input.getMouse();
|
||||
if (mouse.started()) {
|
||||
iron.Scene.active.spawnObject("PinGroup", null, null);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user