FantasyUFG 4 жил өмнө
parent
commit
629eb0b039

+ 6 - 7
assets/script/Game/Touch.js

@@ -22,13 +22,12 @@ cc.Class({
         this.calcDir();
     },
     update(dt) {
-        this.scheduleOnce(function() {
-            if (this.GameMode._gamestart) {
-                this.node.on(cc.Node.EventType.TOUCH_START, this.ontouch_start, this);
-                this.node.on(cc.Node.EventType.TOUCH_END, this.ontouch_End, this);
-
-            }
-        }, 4);
+        // this.scheduleOnce(function() {
+        if (this.GameMode._gamestart) {
+            this.node.on(cc.Node.EventType.TOUCH_START, this.ontouch_start, this);
+            this.node.on(cc.Node.EventType.TOUCH_END, this.ontouch_End, this);
+        }
+        // }, 4);
     },
     calcDir: function() {
         let dirvecX = this.touchEndPoint.x - this.touchStartPoint.x;