Bladeren bron

边界调整

woso_javan 2 maanden geleden
bovenliggende
commit
8296061760

+ 129 - 8
assets/module_storm_sunder/Prefabs/Map1.prefab

@@ -32,16 +32,19 @@
       },
       {
         "__id__": 7208
+      },
+      {
+        "__id__": 7244
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 7244
+        "__id__": 7249
       }
     ],
     "_prefab": {
-      "__id__": 7246
+      "__id__": 7251
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -43588,7 +43591,8 @@
     "fileId": "82bFZwUQleFYfKuJSLTJx3",
     "instance": {
       "__id__": 3325
-    }
+    },
+    "targetOverrides": null
   },
   {
     "__type__": "cc.PrefabInstance",
@@ -95776,7 +95780,7 @@
       "__type__": "cc.Vec3",
       "x": 0,
       "y": 0,
-      "z": 128.321
+      "z": 115
     },
     "_lrot": {
       "__type__": "cc.Quat",
@@ -95937,7 +95941,7 @@
     },
     "_lpos": {
       "__type__": "cc.Vec3",
-      "x": -150,
+      "x": -110,
       "y": 0,
       "z": 0
     },
@@ -96100,7 +96104,7 @@
     },
     "_lpos": {
       "__type__": "cc.Vec3",
-      "x": 150,
+      "x": 110,
       "y": 0,
       "z": 0
     },
@@ -96265,7 +96269,7 @@
       "__type__": "cc.Vec3",
       "x": 0,
       "y": 0,
-      "z": -150
+      "z": -115
     },
     "_lrot": {
       "__type__": "cc.Quat",
@@ -96441,6 +96445,123 @@
     "targetOverrides": null,
     "nestedPrefabInstanceRoots": null
   },
+  {
+    "__type__": "cc.Node",
+    "_name": "Directional Light",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 7245
+      }
+    ],
+    "_prefab": {
+      "__id__": 7248
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 1073741824,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.DirectionalLight",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 7244
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 7246
+    },
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_useColorTemperature": false,
+    "_colorTemperature": 6550,
+    "_staticSettings": {
+      "__id__": 7247
+    },
+    "_visibility": -325058561,
+    "_illuminanceHDR": 65000,
+    "_illuminance": 65000,
+    "_illuminanceLDR": 1.6927083333333335,
+    "_shadowEnabled": false,
+    "_shadowPcf": 2,
+    "_shadowBias": 0.00001,
+    "_shadowNormalBias": 0,
+    "_shadowSaturation": 1,
+    "_shadowDistance": 50,
+    "_shadowInvisibleOcclusionRange": 200,
+    "_csmLevel": 4,
+    "_csmLayerLambda": 0.75,
+    "_csmOptimizationMode": 2,
+    "_csmAdvancedOptions": false,
+    "_csmLayersTransition": false,
+    "_csmTransitionRange": 0.05,
+    "_shadowFixedArea": false,
+    "_shadowNear": 0.1,
+    "_shadowFar": 10,
+    "_shadowOrthoSize": 5,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "0fIHcPJgtKyKRaPzSp72sk"
+  },
+  {
+    "__type__": "cc.StaticLightSettings",
+    "_baked": false,
+    "_editorOnly": false,
+    "_castShadow": true
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "68zVlSndRJK4TUPLK9tICg",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
   {
     "__type__": "cc.UITransform",
     "_name": "",
@@ -96451,7 +96572,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 7245
+      "__id__": 7250
     },
     "_contentSize": {
       "__type__": "cc.Size",

+ 2 - 7
assets/module_storm_sunder/Script/Component/TornadoAIComponent.ts

@@ -58,7 +58,7 @@ export class TornadoAIComponent extends TornadoComponent {
         let text = PlayerMgr.inst.generateUniqueName(20);
         this.playerInfo.nickName = text;
         this.nickName = text;
-        this.currentLv = 11;
+        this.currentLv = 1;
         this.playerInfo.level = this.currentLv;
 
         this.moveDuration = Math.floor(Math.random() * (move_time[1] - move_time[0] + 1)) + move_time[0];
@@ -127,12 +127,7 @@ export class TornadoAIComponent extends TornadoComponent {
 
     protected onTriggerEnter(event: ITriggerEvent): void {
         if (event.otherCollider.getGroup() === 1 << 2) {
-            this.unscheduleAllCallbacks();
-            this.isChasing = false;
-            this.isEscaping = false;
-            this.targetNode = null;
-            Tween.stopAllByTarget(this.node);
-
+            this.cancelAction();
             this.setPositionByObstacle(event, () => {
                 this.decideAction();
             });