瀏覽代碼

更新 'games/yqrxd/launcher/game-min.js'

方法引用不对,调用方式修改
yunhaipiaodi 6 年之前
父節點
當前提交
3816e1dd2d
共有 1 個文件被更改,包括 15 次插入12 次删除
  1. 15 12
      games/yqrxd/launcher/game-min.js

+ 15 - 12
games/yqrxd/launcher/game-min.js

@@ -3305,18 +3305,7 @@ var __extends = this.__extends || function(c, d) {
             }
         };
       	
-      		//添加左右键盘按键操作
-        document.onkeydown = function (event) {
-            var e = event || window.event || arguments.callee.caller.arguments[0];
-            if(e && e.keyCode == 39){       //右方向键
-                this.clickBtnNum = 1;
-            }
-
-            if(e && e.keyCode == 37){       //左方向键
-                this.clickBtnNum = 0;
-            }
-          	this.checkValue();
-        };
+      
       
         d.prototype.checkValue = function() {
             var b = this.showDataArr[this.showDataArr.length - 1];
@@ -3430,6 +3419,20 @@ var __extends = this.__extends || function(c, d) {
         return d
     }(egret.Sprite);
 InGame.prototype.__class__ = "InGame";
+
+//添加左右键盘按键操作
+document.onkeydown = function (event) {
+    var e = event || window.event || arguments.callee.caller.arguments[0];
+    if(e && e.keycode == 39){       //右方向键
+        InGame.prototype.d.prototype.clickBtnNum = 1;
+    }
+
+    if(e && e.keycode == 37){       //左方向键
+        InGame.prototype.d.prototype.clickBtnNum = 0;
+    }
+    InGame.prototype.d.prototype.checkValue();
+};
+
 var __extends = this.__extends || function(c, d) {
         function b() {
             this.constructor = c