forked from LeenkxTeam/Leenkx_Examples
update
This commit is contained in:
1
script_linkedgroup/README.md
Normal file
1
script_linkedgroup/README.md
Normal file
@ -0,0 +1 @@
|
||||
Click to spawn pin
|
||||
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);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
12
script_linkedgroup/Sources/lnx/PinTrait.hx
Normal file
12
script_linkedgroup/Sources/lnx/PinTrait.hx
Normal file
@ -0,0 +1,12 @@
|
||||
package lnx;
|
||||
|
||||
class PinTrait extends iron.Trait {
|
||||
|
||||
public function new() {
|
||||
super();
|
||||
|
||||
notifyOnInit(function() {
|
||||
trace("Pin spawned!");
|
||||
});
|
||||
}
|
||||
}
|
||||
BIN
script_linkedgroup/pin.blend
Normal file
BIN
script_linkedgroup/pin.blend
Normal file
Binary file not shown.
BIN
script_linkedgroup/script_linkedgroup.blend
Normal file
BIN
script_linkedgroup/script_linkedgroup.blend
Normal file
Binary file not shown.
Reference in New Issue
Block a user