mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Shoot after moving hoverboard crosshair.
This commit is contained in:
parent
4fe53ac856
commit
1cb78f658d
@ -113,6 +113,7 @@ var hoverboardDemo = function(canvas, bgColor) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
up: function(x, y) {
|
up: function(x, y) {
|
||||||
|
if (target && target.data.name == "crosshair") $("#hoverboard-shoot").click();
|
||||||
target = null;
|
target = null;
|
||||||
},
|
},
|
||||||
dragged: function(x, y) {
|
dragged: function(x, y) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user