dzduole 3 周之前
父節點
當前提交
0ab259b70f
共有 3 個文件被更改,包括 11 次插入0 次删除
  1. 4 0
      client/laya/bin/js/bundle.js
  2. 0 0
      client/laya/bin/js/bundle.js.map
  3. 7 0
      client/laya/src/ui/UIGame.ts

+ 4 - 0
client/laya/bin/js/bundle.js

@@ -9815,6 +9815,7 @@
             let curUse = DataMgr.getCurBallRod();
             console.log('zh:UIGame 选择的球杆234 = ' + curUse);
             this.getGanZiImg();
+            xGame.soundMgr.playSound("bjyy1", 0);
         }
         updateSelf() {
             if (xGame.common.gameMode == GameMode.classic) {
@@ -10328,6 +10329,7 @@
             this.ui.off(Laya.Event.MOUSE_OUT, this, this.onEventUp);
         }
         resetGame() {
+            xGame.soundMgr.stopSound("bjyy1");
             this.closeAllEvent();
             this.hideBallUI();
             xGame.common.gameMgr.gamePause = true;
@@ -17996,6 +17998,7 @@
             let curUse = DataMgr.getCurBallRod();
             console.log('zh:UIGame 选择的球杆234 = ' + curUse);
             this.getGanZiImg();
+            xGame.soundMgr.playSound("bjyy1", 0);
         }
         updateSelf() {
             if (xGame.common.gameMode == GameMode.classic) {
@@ -18509,6 +18512,7 @@
             this.ui.off(Laya.Event.MOUSE_OUT, this, this.onEventUp);
         }
         resetGame() {
+            xGame.soundMgr.stopSound("bjyy1");
             this.closeAllEvent();
             this.hideBallUI();
             xGame.common.gameMgr.gamePause = true;

文件差異過大導致無法顯示
+ 0 - 0
client/laya/bin/js/bundle.js.map


+ 7 - 0
client/laya/src/ui/UIGame.ts

@@ -183,7 +183,13 @@ export class UIGame extends UIBase {
         let curUse = DataMgr.getCurBallRod();
         console.log('zh:UIGame 选择的球杆234 = ' + curUse);
         this.getGanZiImg();
+
+
+
+        //console.log("持续播放");
+        xGame.soundMgr.playSound("bjyy1", 0);
     }
+
     public updateSelf() {
         //如果是大招模式随机一个关卡
         if (xGame.common.gameMode == GameMode.classic) {
@@ -757,6 +763,7 @@ export class UIGame extends UIBase {
         this.ui.off(Laya.Event.MOUSE_OUT, this, this.onEventUp);
     }
     resetGame() {
+        xGame.soundMgr.stopSound("bjyy1");
         this.closeAllEvent();
         this.hideBallUI();
         xGame.common.gameMgr.gamePause = true;

部分文件因文件數量過多而無法顯示