woso_javan 2 月之前
父節點
當前提交
929568c759

+ 1 - 1
assets/module_storm_sunder/Prefabs/Storm.prefab

@@ -3295,7 +3295,7 @@
       "y": 0,
       "z": 0
     },
-    "_radius": 3,
+    "_radius": 1,
     "_height": 2,
     "_direction": 1,
     "_id": ""

+ 3 - 0
assets/module_storm_sunder/Script/Component/TornadoAIComponent.ts

@@ -58,6 +58,9 @@ export class TornadoAIComponent extends TornadoComponent {
         this.chaseDuration = Math.floor(pursuit_time[0] + Math.random() * (pursuit_time[1] - pursuit_time[0] + 1));
         this.chaseAIProbability = pursuit_1;
         this.chasePlayerProbability = pursuit_2;
+
+        //test 
+        this.chasePlayerProbability = 100;
         this.moveProbability = move_judge;
 
         this.nextExp = this.attributeBonusMgr.getExpNeed(this.currentLv + 1);

+ 1 - 0
assets/module_storm_sunder/Script/Component/TornadoComponent.ts

@@ -156,6 +156,7 @@ export class TornadoComponent extends Component {
 
         const otherCollider = event.otherCollider;
 
+        //攻击道具
         if (otherCollider.getGroup() == 1 << 4) {
             this.curHitObj = otherCollider.node;
 

+ 4 - 2
assets/module_storm_sunder/Script/Manager/TimerMgr.ts

@@ -19,7 +19,7 @@ export class TimerMgr {
         return this.Instance;
     }
 
-    public countDownTime: number = 100;
+    public countDownTime: number = 10;
     private timerId: number = 0;
     private propMgr: PropMgr;
 
@@ -57,7 +57,9 @@ export class TimerMgr {
             clearInterval(this.timerId);
             this.timerId = 0;
             GameMgr.inst.isWin = true;
-            GameMgr.inst.setGameStatus(GameStatus.End);
+            if (GameMgr.inst.getGameStatus() == GameStatus.Playing) {
+                GameMgr.inst.setGameStatus(GameStatus.End);
+            }
         }
     }