dzduole hace 2 días
padre
commit
34a128056d

BIN
client/laya/bin/asset/fgui/game.obj


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

@@ -2276,6 +2276,12 @@
             if (!ball)
                 ball = xGame.common.getRandArrEle(xGame.common.d2World.ballArr);
             if (this.selectNum >= max) {
+                console.log('zh:jian kong bug1');
+                if (ball && ball.gameObj) {
+                }
+                else {
+                    console.log('zh:jian kong bug2  如果到这里应该能看到一个alert弹框报错');
+                }
                 let dx = ball.gameObj.x;
                 let dy = ball.gameObj.y;
                 let kickAngle = 0;

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
client/laya/bin/js/bundle.js.map


+ 6 - 0
client/laya/src/d2Obj/AIPlayer.ts

@@ -372,6 +372,12 @@ export default class AIPlayer {
             ball = xGame.common.getRandArrEle(xGame.common.d2World.ballArr);
         //选取完成
         if (this.selectNum >= max) {
+            console.log('zh:jian kong bug1');
+            if (ball && ball.gameObj) {
+                // 安全访问ball.gameObj的属性
+            } else {
+                console.log('zh:jian kong bug2  如果到这里应该能看到一个alert弹框报错');
+            }
             let dx = ball.gameObj.x;
             let dy = ball.gameObj.y;
             let kickAngle = 0;  //击球夹角

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio