Bläddra i källkod

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

yunhaipiaodi 6 år sedan
förälder
incheckning
aabe184b7b
1 ändrade filer med 11 tillägg och 1 borttagningar
  1. 11 1
      games/yqrxd/launcher/game-min.js

+ 11 - 1
games/yqrxd/launcher/game-min.js

@@ -3636,6 +3636,8 @@ 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))
         };
+      
+      	//左右按钮	
       	 d.prototype.leftOrRightDown = function (code) {
             if ("mi_5" == this.ingame.showDataArr[this.ingame.showDataArr.length - 1]){
                 this.ingame.doClickYes();
@@ -3644,7 +3646,15 @@ var __extends = this.__extends || function(c, d) {
                 this.ingame.checkValue();
             }
         };
-      
+      	
+      	//判断当前是否是首页
+        d.prototype.curIsHomePage = function(){
+            if(this.children instanceof this.homePage){
+                return true;
+            }else{
+                return false;
+            }
+        };
         return d
     }(egret.DisplayObjectContainer);
 MainGame.prototype.__class__ = "MainGame";