浏览代码

Shoot after moving hoverboard crosshair.

NathanSweet 8 年之前
父节点
当前提交
1cb78f658d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      spine-ts/webgl/demos/hoverboard.js

+ 1 - 0
spine-ts/webgl/demos/hoverboard.js

@@ -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) {