瀏覽代碼

level2调整

woso_javan 3 周之前
父節點
當前提交
b9a3c75eb1

+ 13 - 13
assets/module_aliens/Prefabs/Levels/level_2.prefab

@@ -462,9 +462,9 @@
     ],
     "value": {
       "__type__": "cc.Vec3",
-      "x": 0.51,
-      "y": -1.034,
-      "z": -2.609
+      "x": 0.179,
+      "y": -0.385,
+      "z": -1.042
     }
   },
   {
@@ -524,9 +524,9 @@
     ],
     "value": {
       "__type__": "cc.Vec3",
-      "x": 0.1,
-      "y": 0.1,
-      "z": 0.1
+      "x": 0.03,
+      "y": 0.03,
+      "z": 0.03
     }
   },
   {
@@ -15435,7 +15435,7 @@
       "__type__": "cc.Quat",
       "x": -0.3381020724773407,
       "y": -0.15928983688354492,
-      "z": 0.05817442014813423,
+      "z": 0.05817443132400513,
       "w": 0.925704836845398
     }
   },
@@ -15464,9 +15464,9 @@
     ],
     "value": {
       "__type__": "cc.Vec3",
-      "x": 0.000011981590091636463,
-      "y": 0.09503044414464057,
-      "z": -0.007085566552916589
+      "x": 0.000011982881460426142,
+      "y": 0.09503044411223982,
+      "z": -0.0070855667266869204
     }
   },
   {
@@ -18432,7 +18432,7 @@
     ],
     "value": {
       "__type__": "cc.Quat",
-      "x": 0.027973907068371773,
+      "x": 0.027973903343081474,
       "y": 0,
       "z": 0,
       "w": 0.9996086359024048
@@ -18464,8 +18464,8 @@
     "value": {
       "__type__": "cc.Vec3",
       "x": 0.00012207031244315658,
-      "y": 0.09484815586279183,
-      "z": -0.007028269426932354
+      "y": 0.09484815591520146,
+      "z": -0.007028268719423636
     }
   },
   {

+ 6 - 0
assets/module_aliens/Script/AliensGlobalInstance.ts

@@ -34,6 +34,9 @@ export class AliensGlobalInstance extends Component {
         this.aimTarget = find("Canvas/GameUI/BattleUI/AimTarget");
         this.radarNode = find("Canvas/GameUI/BattleUI/Radar");
         this.renderNode = find("Canvas/GameUI/BattleUI/Render");
+
+        this.btnRender = find('Canvas/GameUI/BattleUI/BottomBtns/BtnRender')!;
+        this.btnProbe = find('Canvas/GameUI/BattleUI/BottomBtns/BtnProbe')!;
     }
 
     public camera: Camera = null!; //相机
@@ -49,6 +52,9 @@ export class AliensGlobalInstance extends Component {
     public radarNode: Node = null!; //侦擦节点
 
     public renderNode: Node = null!; //渲染节点
+
+    public btnRender: Node = null!; //截图按钮
+    public btnProbe: Node = null!; //侦擦按钮
 }
 
 

+ 3 - 1
assets/module_aliens/Script/Components/EnemyComponent.ts

@@ -86,7 +86,9 @@ export class EnemyComponent extends Component {
             this.rigidBody.isKinematic = false;
             this.rigidBody.isDynamic = true;
             await GameUtil.delay(0.5);
-            this.node.destroy();
+            if(isValid(this.node)){
+                this.node.destroy();
+            }
         }
     }
 

+ 2 - 0
assets/module_aliens/Script/LevelAction.ts

@@ -69,9 +69,11 @@ export class LevelAction extends Component {
         const renderNode = AliensGlobalInstance.instance.renderNode;
         const aimTarget = AliensGlobalInstance.instance.aimTarget;
         const radarNode = AliensGlobalInstance.instance.radarNode;
+        const battleUI = AliensGlobalInstance.instance.battleUI;
         renderNode.active = false;
         aimTarget.active = false;
         radarNode.active = false;
+        battleUI.active = true;
 
         const match = tgxUIMgr.inst.isShowing(UI_BattleGambit);
         if (!match) {

+ 1 - 4
assets/module_aliens/rooster_aliens.scene

@@ -7011,10 +7011,7 @@
       "b": 255,
       "a": 255
     },
-    "_spriteFrame": {
-      "__uuid__": "a92f5b0d-c5a4-4604-b4a4-27ac18d0fec7@f9941",
-      "__expectedType__": "cc.SpriteFrame"
-    },
+    "_spriteFrame": null,
     "_type": 0,
     "_fillType": 0,
     "_sizeMode": 0,

+ 71 - 71
profiles/v2/packages/scene.json

@@ -5,7 +5,7 @@
     "__version__": "1.3.7"
   },
   "gizmos-infos": {
-    "is2D": true,
+    "is2D": false,
     "is3DIcon": false,
     "iconSize": 2,
     "gridVisible": true,
@@ -37,31 +37,6 @@
     "snapThreshold": 4
   },
   "camera-infos": {
-    "86904f1e-57ff-44d5-8140-5bc0ffaf5289": {
-      "position": {
-        "x": 410.8744929495825,
-        "y": 843.6295923534641,
-        "z": 5000
-      },
-      "rotation": {
-        "x": 0,
-        "y": 0,
-        "z": 0,
-        "w": 1
-      },
-      "viewCenter": {
-        "x": 0,
-        "y": 0,
-        "z": 0
-      },
-      "contentRect": {
-        "x": 337.03318565260753,
-        "y": 769.788285056489,
-        "width": 100,
-        "height": 100
-      },
-      "scale": 0.6771277734684463
-    },
     "7c2cb4cb-6023-4dbe-832b-6484e8e6cd66": {
       "position": {
         "x": 59,
@@ -1164,20 +1139,20 @@
     },
     "7cef9a87-b169-4934-a57b-09eafc129e91": {
       "position": {
-        "x": 0.012109347631565015,
-        "y": 0.09934367362882313,
-        "z": 0.2301198419749264
+        "x": 997,
+        "y": 803,
+        "z": 5000
       },
       "rotation": {
-        "x": -0.024553346207521566,
-        "y": 0.06750551137603725,
-        "z": 0.0016617744929758628,
-        "w": 0.9974153486032826
+        "x": 0,
+        "y": 0,
+        "z": 0,
+        "w": 1
       },
       "viewCenter": {
-        "x": -0.09012613974968121,
-        "y": 0.06196523260280718,
-        "z": -0.5217013662340355
+        "x": 0,
+        "y": 0,
+        "z": 0
       },
       "contentRect": {
         "x": 498.5,
@@ -1189,15 +1164,15 @@
     },
     "773de0b0-468b-4fbb-965c-36c47d7a4c94": {
       "position": {
-        "x": 388.28292458659104,
-        "y": 801.5424013272149,
-        "z": -9.292243315024578
+        "x": 395.1137495383867,
+        "y": 805.4063331235647,
+        "z": -13.196309461020594
       },
       "rotation": {
-        "x": -0.11356746565431076,
-        "y": 0.8424965922432052,
-        "z": 0.19571416452957474,
-        "w": 0.4888741031610919
+        "x": -0.11356746565673946,
+        "y": 0.8424965922135024,
+        "z": 0.19571416450996737,
+        "w": 0.4888741030808509
       },
       "viewCenter": {
         "x": 386.12080174708495,
@@ -1205,24 +1180,49 @@
         "z": -8.056511080875442
       },
       "contentRect": {
-        "x": 0,
-        "y": 0,
-        "width": 910,
-        "height": 803
+        "x": -255.48121912906242,
+        "y": 439.2180394405714,
+        "width": 100,
+        "height": 100.11512015324149
       },
-      "scale": 1
+      "scale": 0.4585020216023357
+    },
+    "29dc5799-9f85-4365-b308-d63b7f8c6727": {
+      "position": {
+        "x": 379.22814195314976,
+        "y": 801.4965122950509,
+        "z": -5.179875550391828
+      },
+      "rotation": {
+        "x": -0.04321495441222753,
+        "y": -0.37542781544683573,
+        "z": -0.017526718259034728,
+        "w": 0.9256777178105964
+      },
+      "viewCenter": {
+        "x": 385.34404017909077,
+        "y": 800.6749314733378,
+        "z": -11.479526627556456
+      },
+      "contentRect": {
+        "x": -255.48121912906242,
+        "y": 439.2180394405714,
+        "width": 100,
+        "height": 100.11512015324149
+      },
+      "scale": 0.4585020216023357
     },
     "19323c5d-5d36-438a-86ee-8288c690e5b0": {
       "position": {
-        "x": 59.86583333333331,
-        "y": 127.52583333333331,
-        "z": 5000
+        "x": 31.565114316470655,
+        "y": 31.565114316470652,
+        "z": 31.565114316470652
       },
       "rotation": {
-        "x": 0,
-        "y": 0,
-        "z": 0,
-        "w": 1
+        "x": -0.27984814233312133,
+        "y": 0.3647051996310009,
+        "z": 0.11591689595929512,
+        "w": 0.8804762392171493
       },
       "viewCenter": {
         "x": 0,
@@ -1230,18 +1230,18 @@
         "z": 0
       },
       "contentRect": {
-        "x": 181.5,
-        "y": 383.49999999999994,
-        "width": 353,
-        "height": 745.8705234159779
+        "x": 0,
+        "y": 0,
+        "width": 363,
+        "height": 767
       },
-      "scale": 0.9724517906336089
+      "scale": 1
     },
     "9e293cde-e27b-4902-808b-e884f3e9da32": {
       "position": {
-        "x": 937.5,
-        "y": 625,
-        "z": 5000
+        "x": 18.695477141176585,
+        "y": 18.695477141176582,
+        "z": 18.69547714117658
       },
       "rotation": {
         "x": 0,
@@ -1257,15 +1257,15 @@
       "contentRect": {
         "x": 0,
         "y": 0,
-        "width": 1875,
-        "height": 1250
+        "width": 363,
+        "height": 767
       },
       "scale": 1
     },
     "be14c61f-22d8-4bb9-b444-ad9f29740469": {
       "position": {
-        "x": 455,
-        "y": 401.5,
+        "x": 347.91588821180403,
+        "y": 563.2241682350736,
         "z": 5000
       },
       "rotation": {
@@ -1282,14 +1282,13 @@
       "contentRect": {
         "x": 0,
         "y": 0,
-        "width": 898.6674968866749,
-        "height": 793
+        "width": 363,
+        "height": 767
       },
-      "scale": 0.987546699875467
+      "scale": 1
     }
   },
   "camera-uuids": [
-    "86904f1e-57ff-44d5-8140-5bc0ffaf5289",
     "7c2cb4cb-6023-4dbe-832b-6484e8e6cd66",
     "04311bc3-c519-4c8d-be27-f1b51136fa90",
     "a791dba4-8713-4857-9f99-3e6e7d4f6646",
@@ -1336,6 +1335,7 @@
     "e4c2b613-d38f-42e1-9557-74a22acb2cdb",
     "7cef9a87-b169-4934-a57b-09eafc129e91",
     "773de0b0-468b-4fbb-965c-36c47d7a4c94",
+    "29dc5799-9f85-4365-b308-d63b7f8c6727",
     "19323c5d-5d36-438a-86ee-8288c690e5b0",
     "9e293cde-e27b-4902-808b-e884f3e9da32",
     "be14c61f-22d8-4bb9-b444-ad9f29740469"