Преглед изворни кода

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

错误的引用了其他类的函数,已修正
yunhaipiaodi пре 6 година
родитељ
комит
7388edc3a5
1 измењених фајлова са 15 додато и 12 уклоњено
  1. 15 12
      games/yqrxd/launcher/game-min.js

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

@@ -3304,6 +3304,20 @@ var __extends = this.__extends || function(c, d) {
                 this.checkValue()
             }
         };
+      	
+      		//添加左右键盘按键操作
+        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];
             console.log(b);
@@ -3628,18 +3642,7 @@ var __extends = this.__extends || function(c, d) {
             null != this.ingame && (this.removeChild(this.ingame), this.ingame = null);
             null == this.info && (this.info = new Info, this.addChild(this.info))
         };
-      	//添加左右键盘按键操作
-        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();
-        };
+      
         return d
     }(egret.DisplayObjectContainer);
 MainGame.prototype.__class__ = "MainGame";