woso_javan před 1 měsícem
rodič
revize
c111fd3ddc

+ 333 - 79
assets/module_aliens/Prefabs/Levels/level_1.prefab

@@ -26,19 +26,22 @@
       },
       {
         "__id__": 53
+      },
+      {
+        "__id__": 120
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 107
+        "__id__": 124
       },
       {
-        "__id__": 109
+        "__id__": 126
       }
     ],
     "_prefab": {
-      "__id__": 111
+      "__id__": 128
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -824,25 +827,25 @@
         "__id__": 54
       },
       {
-        "__id__": 64
+        "__id__": 66
       },
       {
-        "__id__": 74
+        "__id__": 79
       },
       {
-        "__id__": 82
+        "__id__": 89
       },
       {
-        "__id__": 90
+        "__id__": 99
       },
       {
-        "__id__": 98
+        "__id__": 109
       }
     ],
     "_active": true,
     "_components": [],
     "_prefab": {
-      "__id__": 106
+      "__id__": 119
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -922,6 +925,9 @@
       },
       {
         "__id__": 62
+      },
+      {
+        "__id__": 64
       }
     ],
     "removedComponents": []
@@ -1004,6 +1010,27 @@
       "bazWPafvFLl5RV2zejcY8A"
     ]
   },
+  {
+    "__type__": "CCPropertyOverrideInfo",
+    "targetInfo": {
+      "__id__": 65
+    },
+    "propertyPath": [
+      "_lpos"
+    ],
+    "value": {
+      "__type__": "cc.Vec3",
+      "x": 0.000006347656267280399,
+      "y": 0,
+      "z": 1.3351440397713077e-8
+    }
+  },
+  {
+    "__type__": "cc.TargetInfo",
+    "localID": [
+      "efkQuelFtDuYKPJhl+9w2Z"
+    ]
+  },
   {
     "__type__": "cc.Node",
     "_objFlags": 0,
@@ -1011,14 +1038,14 @@
       "__id__": 53
     },
     "_prefab": {
-      "__id__": 65
+      "__id__": 67
     },
     "__editorExtras__": {}
   },
   {
     "__type__": "cc.PrefabInfo",
     "root": {
-      "__id__": 64
+      "__id__": 66
     },
     "asset": {
       "__uuid__": "f631c866-c36b-443f-a8c0-a895176b7610",
@@ -1026,7 +1053,7 @@
     },
     "fileId": "c46/YsCPVOJYA4mWEpNYRx",
     "instance": {
-      "__id__": 66
+      "__id__": 68
     },
     "targetOverrides": null
   },
@@ -1040,19 +1067,25 @@
     "mountedComponents": [],
     "propertyOverrides": [
       {
-        "__id__": 67
+        "__id__": 69
       },
       {
-        "__id__": 69
+        "__id__": 71
       },
       {
-        "__id__": 70
+        "__id__": 72
       },
       {
-        "__id__": 71
+        "__id__": 73
       },
       {
-        "__id__": 72
+        "__id__": 74
+      },
+      {
+        "__id__": 76
+      },
+      {
+        "__id__": 78
       }
     ],
     "removedComponents": []
@@ -1060,7 +1093,7 @@
   {
     "__type__": "CCPropertyOverrideInfo",
     "targetInfo": {
-      "__id__": 68
+      "__id__": 70
     },
     "propertyPath": [
       "_name"
@@ -1076,7 +1109,7 @@
   {
     "__type__": "CCPropertyOverrideInfo",
     "targetInfo": {
-      "__id__": 68
+      "__id__": 70
     },
     "propertyPath": [
       "_lpos"
@@ -1091,7 +1124,7 @@
   {
     "__type__": "CCPropertyOverrideInfo",
     "targetInfo": {
-      "__id__": 68
+      "__id__": 70
     },
     "propertyPath": [
       "_lrot"
@@ -1099,15 +1132,15 @@
     "value": {
       "__type__": "cc.Quat",
       "x": 0,
-      "y": 0,
+      "y": 1,
       "z": 0,
-      "w": 1
+      "w": 6.123233995736766e-17
     }
   },
   {
     "__type__": "CCPropertyOverrideInfo",
     "targetInfo": {
-      "__id__": 68
+      "__id__": 70
     },
     "propertyPath": [
       "_euler"
@@ -1115,14 +1148,14 @@
     "value": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": 0,
+      "y": 180,
       "z": 0
     }
   },
   {
     "__type__": "CCPropertyOverrideInfo",
     "targetInfo": {
-      "__id__": 73
+      "__id__": 75
     },
     "propertyPath": [
       "_group"
@@ -1135,6 +1168,42 @@
       "bazWPafvFLl5RV2zejcY8A"
     ]
   },
+  {
+    "__type__": "CCPropertyOverrideInfo",
+    "targetInfo": {
+      "__id__": 77
+    },
+    "propertyPath": [
+      "_lpos"
+    ],
+    "value": {
+      "__type__": "cc.Vec3",
+      "x": -0.0000209960937240794,
+      "y": 0,
+      "z": -0.000008657455444316398
+    }
+  },
+  {
+    "__type__": "cc.TargetInfo",
+    "localID": [
+      "efkQuelFtDuYKPJhl+9w2Z"
+    ]
+  },
+  {
+    "__type__": "CCPropertyOverrideInfo",
+    "targetInfo": {
+      "__id__": 70
+    },
+    "propertyPath": [
+      "_lscale"
+    ],
+    "value": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    }
+  },
   {
     "__type__": "cc.Node",
     "_objFlags": 0,
@@ -1142,14 +1211,14 @@
       "__id__": 53
     },
     "_prefab": {
-      "__id__": 75
+      "__id__": 80
     },
     "__editorExtras__": {}
   },
   {
     "__type__": "cc.PrefabInfo",
     "root": {
-      "__id__": 74
+      "__id__": 79
     },
     "asset": {
       "__uuid__": "f631c866-c36b-443f-a8c0-a895176b7610",
@@ -1157,7 +1226,7 @@
     },
     "fileId": "c46/YsCPVOJYA4mWEpNYRx",
     "instance": {
-      "__id__": 76
+      "__id__": 81
     },
     "targetOverrides": null
   },
@@ -1171,16 +1240,19 @@
     "mountedComponents": [],
     "propertyOverrides": [
       {
-        "__id__": 77
+        "__id__": 82
       },
       {
-        "__id__": 79
+        "__id__": 84
       },
       {
-        "__id__": 80
+        "__id__": 85
+      },
+      {
+        "__id__": 86
       },
       {
-        "__id__": 81
+        "__id__": 87
       }
     ],
     "removedComponents": []
@@ -1188,7 +1260,7 @@
   {
     "__type__": "CCPropertyOverrideInfo",
     "targetInfo": {
-      "__id__": 78
+      "__id__": 83
     },
     "propertyPath": [
       "_name"
@@ -1204,7 +1276,7 @@
   {
     "__type__": "CCPropertyOverrideInfo",
     "targetInfo": {
-      "__id__": 78
+      "__id__": 83
     },
     "propertyPath": [
       "_lpos"
@@ -1219,7 +1291,7 @@
   {
     "__type__": "CCPropertyOverrideInfo",
     "targetInfo": {
-      "__id__": 78
+      "__id__": 83
     },
     "propertyPath": [
       "_lrot"
@@ -1235,7 +1307,7 @@
   {
     "__type__": "CCPropertyOverrideInfo",
     "targetInfo": {
-      "__id__": 78
+      "__id__": 83
     },
     "propertyPath": [
       "_euler"
@@ -1247,6 +1319,27 @@
       "z": 0
     }
   },
+  {
+    "__type__": "CCPropertyOverrideInfo",
+    "targetInfo": {
+      "__id__": 88
+    },
+    "propertyPath": [
+      "_lpos"
+    ],
+    "value": {
+      "__type__": "cc.Vec3",
+      "x": 0.000011474609380002221,
+      "y": -0.000015136718729991117,
+      "z": 4.959106458812812e-8
+    }
+  },
+  {
+    "__type__": "cc.TargetInfo",
+    "localID": [
+      "efkQuelFtDuYKPJhl+9w2Z"
+    ]
+  },
   {
     "__type__": "cc.Node",
     "_objFlags": 0,
@@ -1254,14 +1347,14 @@
       "__id__": 53
     },
     "_prefab": {
-      "__id__": 83
+      "__id__": 90
     },
     "__editorExtras__": {}
   },
   {
     "__type__": "cc.PrefabInfo",
     "root": {
-      "__id__": 82
+      "__id__": 89
     },
     "asset": {
       "__uuid__": "f631c866-c36b-443f-a8c0-a895176b7610",
@@ -1269,7 +1362,7 @@
     },
     "fileId": "c46/YsCPVOJYA4mWEpNYRx",
     "instance": {
-      "__id__": 84
+      "__id__": 91
     },
     "targetOverrides": null
   },
@@ -1283,16 +1376,19 @@
     "mountedComponents": [],
     "propertyOverrides": [
       {
-        "__id__": 85
+        "__id__": 92
       },
       {
-        "__id__": 87
+        "__id__": 94
       },
       {
-        "__id__": 88
+        "__id__": 95
       },
       {
-        "__id__": 89
+        "__id__": 96
+      },
+      {
+        "__id__": 97
       }
     ],
     "removedComponents": []
@@ -1300,7 +1396,7 @@
   {
     "__type__": "CCPropertyOverrideInfo",
     "targetInfo": {
-      "__id__": 86
+      "__id__": 93
     },
     "propertyPath": [
       "_name"
@@ -1316,7 +1412,7 @@
   {
     "__type__": "CCPropertyOverrideInfo",
     "targetInfo": {
-      "__id__": 86
+      "__id__": 93
     },
     "propertyPath": [
       "_lpos"
@@ -1331,7 +1427,7 @@
   {
     "__type__": "CCPropertyOverrideInfo",
     "targetInfo": {
-      "__id__": 86
+      "__id__": 93
     },
     "propertyPath": [
       "_lrot"
@@ -1339,15 +1435,15 @@
     "value": {
       "__type__": "cc.Quat",
       "x": 0,
-      "y": 0,
+      "y": 0.7071067811865475,
       "z": 0,
-      "w": 1
+      "w": 0.7071067811865476
     }
   },
   {
     "__type__": "CCPropertyOverrideInfo",
     "targetInfo": {
-      "__id__": 86
+      "__id__": 93
     },
     "propertyPath": [
       "_euler"
@@ -1355,10 +1451,31 @@
     "value": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": 0,
+      "y": 90,
       "z": 0
     }
   },
+  {
+    "__type__": "CCPropertyOverrideInfo",
+    "targetInfo": {
+      "__id__": 98
+    },
+    "propertyPath": [
+      "_lpos"
+    ],
+    "value": {
+      "__type__": "cc.Vec3",
+      "x": -8.010864256391415e-7,
+      "y": 0.00002099609378092282,
+      "z": -9.76562489540811e-7
+    }
+  },
+  {
+    "__type__": "cc.TargetInfo",
+    "localID": [
+      "efkQuelFtDuYKPJhl+9w2Z"
+    ]
+  },
   {
     "__type__": "cc.Node",
     "_objFlags": 0,
@@ -1366,14 +1483,14 @@
       "__id__": 53
     },
     "_prefab": {
-      "__id__": 91
+      "__id__": 100
     },
     "__editorExtras__": {}
   },
   {
     "__type__": "cc.PrefabInfo",
     "root": {
-      "__id__": 90
+      "__id__": 99
     },
     "asset": {
       "__uuid__": "f631c866-c36b-443f-a8c0-a895176b7610",
@@ -1381,7 +1498,7 @@
     },
     "fileId": "c46/YsCPVOJYA4mWEpNYRx",
     "instance": {
-      "__id__": 92
+      "__id__": 101
     },
     "targetOverrides": null
   },
@@ -1395,16 +1512,19 @@
     "mountedComponents": [],
     "propertyOverrides": [
       {
-        "__id__": 93
+        "__id__": 102
       },
       {
-        "__id__": 95
+        "__id__": 104
       },
       {
-        "__id__": 96
+        "__id__": 105
       },
       {
-        "__id__": 97
+        "__id__": 106
+      },
+      {
+        "__id__": 107
       }
     ],
     "removedComponents": []
@@ -1412,7 +1532,7 @@
   {
     "__type__": "CCPropertyOverrideInfo",
     "targetInfo": {
-      "__id__": 94
+      "__id__": 103
     },
     "propertyPath": [
       "_name"
@@ -1428,7 +1548,7 @@
   {
     "__type__": "CCPropertyOverrideInfo",
     "targetInfo": {
-      "__id__": 94
+      "__id__": 103
     },
     "propertyPath": [
       "_lpos"
@@ -1443,7 +1563,7 @@
   {
     "__type__": "CCPropertyOverrideInfo",
     "targetInfo": {
-      "__id__": 94
+      "__id__": 103
     },
     "propertyPath": [
       "_lrot"
@@ -1459,7 +1579,7 @@
   {
     "__type__": "CCPropertyOverrideInfo",
     "targetInfo": {
-      "__id__": 94
+      "__id__": 103
     },
     "propertyPath": [
       "_euler"
@@ -1471,6 +1591,27 @@
       "z": 0
     }
   },
+  {
+    "__type__": "CCPropertyOverrideInfo",
+    "targetInfo": {
+      "__id__": 108
+    },
+    "propertyPath": [
+      "_lpos"
+    ],
+    "value": {
+      "__type__": "cc.Vec3",
+      "x": 0.0000034179687418145477,
+      "y": 0.00002099609378092282,
+      "z": 3.8146972691777137e-7
+    }
+  },
+  {
+    "__type__": "cc.TargetInfo",
+    "localID": [
+      "efkQuelFtDuYKPJhl+9w2Z"
+    ]
+  },
   {
     "__type__": "cc.Node",
     "_objFlags": 0,
@@ -1478,14 +1619,14 @@
       "__id__": 53
     },
     "_prefab": {
-      "__id__": 99
+      "__id__": 110
     },
     "__editorExtras__": {}
   },
   {
     "__type__": "cc.PrefabInfo",
     "root": {
-      "__id__": 98
+      "__id__": 109
     },
     "asset": {
       "__uuid__": "f631c866-c36b-443f-a8c0-a895176b7610",
@@ -1493,7 +1634,7 @@
     },
     "fileId": "c46/YsCPVOJYA4mWEpNYRx",
     "instance": {
-      "__id__": 100
+      "__id__": 111
     },
     "targetOverrides": null
   },
@@ -1507,16 +1648,19 @@
     "mountedComponents": [],
     "propertyOverrides": [
       {
-        "__id__": 101
+        "__id__": 112
       },
       {
-        "__id__": 103
+        "__id__": 114
       },
       {
-        "__id__": 104
+        "__id__": 115
       },
       {
-        "__id__": 105
+        "__id__": 116
+      },
+      {
+        "__id__": 117
       }
     ],
     "removedComponents": []
@@ -1524,7 +1668,7 @@
   {
     "__type__": "CCPropertyOverrideInfo",
     "targetInfo": {
-      "__id__": 102
+      "__id__": 113
     },
     "propertyPath": [
       "_name"
@@ -1540,7 +1684,7 @@
   {
     "__type__": "CCPropertyOverrideInfo",
     "targetInfo": {
-      "__id__": 102
+      "__id__": 113
     },
     "propertyPath": [
       "_lpos"
@@ -1555,7 +1699,7 @@
   {
     "__type__": "CCPropertyOverrideInfo",
     "targetInfo": {
-      "__id__": 102
+      "__id__": 113
     },
     "propertyPath": [
       "_lrot"
@@ -1571,7 +1715,7 @@
   {
     "__type__": "CCPropertyOverrideInfo",
     "targetInfo": {
-      "__id__": 102
+      "__id__": 113
     },
     "propertyPath": [
       "_euler"
@@ -1583,6 +1727,27 @@
       "z": 0
     }
   },
+  {
+    "__type__": "CCPropertyOverrideInfo",
+    "targetInfo": {
+      "__id__": 118
+    },
+    "propertyPath": [
+      "_lpos"
+    ],
+    "value": {
+      "__type__": "cc.Vec3",
+      "x": 0.000012939453142735147,
+      "y": 0.00002099609378092282,
+      "z": 3.051757815342171e-7
+    }
+  },
+  {
+    "__type__": "cc.TargetInfo",
+    "localID": [
+      "efkQuelFtDuYKPJhl+9w2Z"
+    ]
+  },
   {
     "__type__": "cc.PrefabInfo",
     "root": {
@@ -1596,6 +1761,94 @@
     "targetOverrides": null,
     "nestedPrefabInstanceRoots": null
   },
+  {
+    "__type__": "cc.Node",
+    "_name": "origin",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 121
+      }
+    ],
+    "_prefab": {
+      "__id__": 123
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 15,
+      "y": 5,
+      "z": 20
+    },
+    "_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.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 120
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 122
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 100,
+      "height": 100
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "a0nKm7ruVAEJmE+2mMQM34"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "6dB8Bnu8lBH50IfJ9WUwlA",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
   {
     "__type__": "cc.UITransform",
     "_name": "",
@@ -1606,7 +1859,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 108
+      "__id__": 125
     },
     "_contentSize": {
       "__type__": "cc.Size",
@@ -1634,11 +1887,12 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 110
+      "__id__": 127
     },
     "camera": {
       "__id__": 3
     },
+    "gun": null,
     "enemyTotal": 6,
     "minXRotation": -30,
     "maxXRotation": 30,
@@ -1663,19 +1917,19 @@
     "targetOverrides": null,
     "nestedPrefabInstanceRoots": [
       {
-        "__id__": 98
+        "__id__": 109
       },
       {
-        "__id__": 90
+        "__id__": 99
       },
       {
-        "__id__": 82
+        "__id__": 89
       },
       {
-        "__id__": 74
+        "__id__": 79
       },
       {
-        "__id__": 64
+        "__id__": 66
       },
       {
         "__id__": 54

+ 142 - 7
assets/module_aliens/Prefabs/cow.prefab

@@ -20,22 +20,25 @@
     "_children": [
       {
         "__id__": 2
+      },
+      {
+        "__id__": 16
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 16
+        "__id__": 22
       },
       {
-        "__id__": 18
+        "__id__": 24
       },
       {
-        "__id__": 20
+        "__id__": 26
       }
     ],
     "_prefab": {
-      "__id__": 22
+      "__id__": 28
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -251,6 +254,138 @@
       "__expectedType__": "cc.AnimationClip"
     }
   },
+  {
+    "__type__": "cc.Node",
+    "_name": "head",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 17
+      },
+      {
+        "__id__": 19
+      }
+    ],
+    "_prefab": {
+      "__id__": 21
+    },
+    "_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.RigidBody",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 16
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 18
+    },
+    "_group": 16,
+    "_type": 4,
+    "_mass": 1,
+    "_allowSleep": true,
+    "_linearDamping": 0.1,
+    "_angularDamping": 0.1,
+    "_useGravity": true,
+    "_linearFactor": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_angularFactor": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "fdPTT/UCdGGbRGv9OMpWdy"
+  },
+  {
+    "__type__": "cc.BoxCollider",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 16
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 20
+    },
+    "_material": null,
+    "_isTrigger": false,
+    "_center": {
+      "__type__": "cc.Vec3",
+      "x": -0.7,
+      "y": 0.6,
+      "z": 0
+    },
+    "_size": {
+      "__type__": "cc.Vec3",
+      "x": 0.7,
+      "y": 1,
+      "z": 1
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "3c1E1Lf2BPwb3kai+0slSo"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "efkQuelFtDuYKPJhl+9w2Z",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
   {
     "__type__": "cc.RigidBody",
     "_name": "",
@@ -261,7 +396,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 17
+      "__id__": 23
     },
     "_group": 8,
     "_type": 4,
@@ -298,7 +433,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 19
+      "__id__": 25
     },
     "_material": null,
     "_isTrigger": true,
@@ -330,7 +465,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 21
+      "__id__": 27
     },
     "_id": ""
   },

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

@@ -35,6 +35,7 @@ export class AliensGlobalInstance extends Component {
         this.radarNode = find("Canvas/GameUI/BattleUI/Radar");
         this.lbTestShoot = find("Canvas/GameUI/BattleUI/LbTestShoot").getComponent(Label)!;
         this.renderNode = find("Canvas/GameUI/BattleUI/Render");
+        this.guns = find("Canvas/GameUI/BattleUI/Guns");
     }
 
     public camera: Camera = null!; //相机
@@ -49,6 +50,7 @@ export class AliensGlobalInstance extends Component {
     public aimTarget: Node = null!; //瞄准放大节点
     public radarNode: Node = null!; //侦擦节点
     public lbTestShoot:Label = null!; //测试射击
+    public guns:Node = null!; //测试射击
 
     public renderNode: Node = null!; //渲染节点
 }

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

@@ -136,7 +136,7 @@ export class LevelAction extends Component {
             for (let i = 0; i < results.length; i++) {
                 const item = results[i];
                 const hitNode = item.collider.node;
-                // console.log(`碰撞物体${i}: ${hitNode.name} 距离: ${item.distance.toFixed(2)}`);
+                console.log(`碰撞物体${i}: ${hitNode.name} 距离: ${item.distance.toFixed(2)}`);
 
                 if(hitNode.getComponent(EnemyComponent)){
                     const levelNode = AliensGlobalInstance.instance.levels.children[0];
@@ -150,10 +150,11 @@ export class LevelAction extends Component {
                         const target = hitNode;
                         EventDispatcher.instance.emit(GameEvent.EVENT_LAST_ENEMY_KILLED);
                         TimerMgr.inst.pauseCountdown();
+                        AliensGlobalInstance.instance.guns.active = false;
                         CameraSegmentation.segmentation(origin,target);
                         this.scheduleOnce(()=>{
                             EventDispatcher.instance.emit(GameEvent.EVENT_CAMERA_SHOOT_ENEMY,hitNode);
-                        },moveDuration / 10);
+                        },(moveDuration  + 1) / 10);
                     }
                 }
             }

+ 1 - 1
assets/start/Config/GlobalConfig.ts

@@ -1,5 +1,5 @@
 export const GlobalConfig = {
     isDebug: true,
-    initilizeLevel: 2,//初始关卡
+    initilizeLevel: 1,//初始关卡
     levelTotal: 20,   //最大关卡等级
 }

+ 1 - 1
profiles/v2/packages/preview.json

@@ -5,7 +5,7 @@
   },
   "preview": {
     "current": {
-      "platform": "gameView"
+      "platform": "browser"
     }
   }
 }

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

@@ -5,7 +5,7 @@
     "__version__": "1.3.7"
   },
   "gizmos-infos": {
-    "is2D": false,
+    "is2D": true,
     "is3DIcon": false,
     "iconSize": 2,
     "gridVisible": true,
@@ -1062,10 +1062,10 @@
       },
       "scale": 0.3460335539509066
     },
-    "f631c866-c36b-443f-a8c0-a895176b7610": {
+    "e4c2b613-d38f-42e1-9557-74a22acb2cdb": {
       "position": {
-        "x": 543,
-        "y": 382,
+        "x": 371.0130491947914,
+        "y": 810.3588263983897,
         "z": 5000
       },
       "rotation": {
@@ -1074,31 +1074,6 @@
         "z": 0,
         "w": 1
       },
-      "viewCenter": {
-        "x": 428.80234835298126,
-        "y": 659.8267214479052,
-        "z": -178.65010368546064
-      },
-      "contentRect": {
-        "x": 0,
-        "y": 0,
-        "width": 875,
-        "height": 472
-      },
-      "scale": 1
-    },
-    "6a3f318c-4d9d-46e4-b3a7-60451b683572": {
-      "position": {
-        "x": 4.6510191860404575,
-        "y": 2.2969513300286053,
-        "z": 10.115261060142302
-      },
-      "rotation": {
-        "x": -0.09920530774592298,
-        "y": 0.2127184440675475,
-        "z": 0.0217147027554503,
-        "w": 0.97182181605105
-      },
       "viewCenter": {
         "x": 0,
         "y": 0,
@@ -1114,15 +1089,15 @@
     },
     "02aebe80-4488-4c7d-9cc6-5b71a0f5351d": {
       "position": {
-        "x": 2.0820803915648773,
+        "x": 2.082080391564877,
         "y": 2.0820803915648773,
         "z": 2.0820803915649058
       },
       "rotation": {
         "x": -0.27984814233312133,
         "y": 0.36470519963100073,
-        "z": 0.1159168959592951,
-        "w": 0.8804762392171493
+        "z": 0.11591689595929508,
+        "w": 0.8804762392171495
       },
       "viewCenter": {
         "x": 0,
@@ -1137,17 +1112,17 @@
       },
       "scale": 1
     },
-    "e4c2b613-d38f-42e1-9557-74a22acb2cdb": {
+    "6a3f318c-4d9d-46e4-b3a7-60451b683572": {
       "position": {
-        "x": 371.0130491947914,
-        "y": 810.3588263983897,
-        "z": 5000
+        "x": 4.6510191860404575,
+        "y": 2.2969513300286053,
+        "z": 10.115261060142302
       },
       "rotation": {
-        "x": 0,
-        "y": 0,
-        "z": 0,
-        "w": 1
+        "x": -0.09920530774592298,
+        "y": 0.21271844406754747,
+        "z": 0.021714702755450295,
+        "w": 0.97182181605105
       },
       "viewCenter": {
         "x": 0,
@@ -1162,26 +1137,26 @@
       },
       "scale": 1
     },
-    "773de0b0-468b-4fbb-965c-36c47d7a4c94": {
+    "f631c866-c36b-443f-a8c0-a895176b7610": {
       "position": {
-        "x": 437.5,
-        "y": 236,
-        "z": 5000
+        "x": -7.918952283943974,
+        "y": 1.7764639308227417,
+        "z": 1.2126713266100155
       },
       "rotation": {
-        "x": 0,
-        "y": 0,
-        "z": 0,
-        "w": 1
+        "x": -0.07385803242206967,
+        "y": -0.5552882524016344,
+        "z": -0.04960946839957906,
+        "w": 0.8268850273384991
       },
       "viewCenter": {
-        "x": 777.6574156913246,
-        "y": 1592.805730513512,
-        "z": 25.68604587839488
+        "x": 3.306672779868447,
+        "y": -0.40755560018293036,
+        "z": -3.376201393397324
       },
       "contentRect": {
-        "x": 5.888290713324352,
-        "y": -130.5,
+        "x": 0,
+        "y": 0,
         "width": 875,
         "height": 472
       },
@@ -1191,7 +1166,7 @@
       "position": {
         "x": 940.3031681545094,
         "y": 890.6984250322378,
-        "z": 93.93632002300248
+        "z": 93.93632002300228
       },
       "rotation": {
         "x": -0.05811691806617178,
@@ -1212,11 +1187,36 @@
       },
       "scale": 1
     },
+    "773de0b0-468b-4fbb-965c-36c47d7a4c94": {
+      "position": {
+        "x": 351.9145189533068,
+        "y": 805.7112926681209,
+        "z": 18.027545591757537
+      },
+      "rotation": {
+        "x": -0.155638651482629,
+        "y": 0.26161817669004805,
+        "z": 0.042797563566354044,
+        "w": 0.9515781146825664
+      },
+      "viewCenter": {
+        "x": 345.599,
+        "y": 801.559,
+        "z": 7.41
+      },
+      "contentRect": {
+        "x": 0,
+        "y": 0,
+        "width": 875,
+        "height": 472
+      },
+      "scale": 1
+    },
     "19323c5d-5d36-438a-86ee-8288c690e5b0": {
       "position": {
-        "x": 29.130629196403966,
-        "y": 29.130629196403966,
-        "z": 29.130629196403962
+        "x": 34.480056522642194,
+        "y": 34.48005652264219,
+        "z": 34.48005652264219
       },
       "rotation": {
         "x": -0.27984814233312133,
@@ -1239,15 +1239,15 @@
     },
     "9e293cde-e27b-4902-808b-e884f3e9da32": {
       "position": {
-        "x": 20.877981805209792,
-        "y": 20.87798180520979,
-        "z": 20.877981805209785
+        "x": 21.00137085938084,
+        "y": 21.001370859380838,
+        "z": 21.001370859380835
       },
       "rotation": {
-        "x": -0.10670406042840229,
-        "y": 0.13905943893547512,
-        "z": 0.044198268989722476,
-        "w": 0.9835259167654683
+        "x": -0.13506948245313335,
+        "y": 0.17602597662945343,
+        "z": 0.055947611494802596,
+        "w": 0.9734685178420084
       },
       "viewCenter": {
         "x": 0,
@@ -1266,7 +1266,7 @@
       "position": {
         "x": 476.406645223832,
         "y": 499.89192923864505,
-        "z": 3715.7618139191864
+        "z": 3348.0627492526733
       },
       "rotation": {
         "x": 0,
@@ -1330,12 +1330,12 @@
     "97847f67-f841-48ad-a6b2-6ac8db2fcbfd",
     "7d719727-ff7f-4ee8-81ed-4ee61f407f45",
     "d6678b55-2635-45df-bdce-51e04632740e",
-    "f631c866-c36b-443f-a8c0-a895176b7610",
-    "6a3f318c-4d9d-46e4-b3a7-60451b683572",
-    "02aebe80-4488-4c7d-9cc6-5b71a0f5351d",
     "e4c2b613-d38f-42e1-9557-74a22acb2cdb",
-    "773de0b0-468b-4fbb-965c-36c47d7a4c94",
+    "02aebe80-4488-4c7d-9cc6-5b71a0f5351d",
+    "6a3f318c-4d9d-46e4-b3a7-60451b683572",
+    "f631c866-c36b-443f-a8c0-a895176b7610",
     "cd016e58-b005-459a-b3dc-4fecf918e910",
+    "773de0b0-468b-4fbb-965c-36c47d7a4c94",
     "19323c5d-5d36-438a-86ee-8288c690e5b0",
     "9e293cde-e27b-4902-808b-e884f3e9da32",
     "be14c61f-22d8-4bb9-b444-ad9f29740469"

+ 4 - 0
settings/v2/packages/project.json

@@ -29,6 +29,10 @@
       {
         "index": 3,
         "name": "ENEMY"
+      },
+      {
+        "index": 4,
+        "name": "HEAD"
       }
     ],
     "collisionMatrix": {

+ 0 - 3
temp/profiles/packages/scene.json

@@ -1,3 +0,0 @@
-{
-  "current-scene": ""
-}

+ 0 - 29
temp/programming/packer-driver/targets/editor/chunks/ff/ffa4bad885fad3e5041d4cdfd1c8677bd3d47342.js

@@ -1,29 +0,0 @@
-System.register(["cc"], function (_export, _context) {
-  "use strict";
-
-  var _cclegacy, _crd, GlobalConfig;
-
-  return {
-    setters: [function (_cc) {
-      _cclegacy = _cc.cclegacy;
-    }],
-    execute: function () {
-      _crd = true;
-
-      _cclegacy._RF.push({}, "6accf2OQMpNX6qyXp9M6Uqt", "GlobalConfig", undefined);
-
-      _export("GlobalConfig", GlobalConfig = {
-        isDebug: true,
-        initilizeLevel: 2,
-        //初始关卡
-        levelTotal: 20 //最大关卡等级
-
-      });
-
-      _cclegacy._RF.pop();
-
-      _crd = false;
-    }
-  };
-});
-//# sourceMappingURL=ffa4bad885fad3e5041d4cdfd1c8677bd3d47342.js.map

+ 0 - 1
temp/programming/packer-driver/targets/editor/chunks/ff/ffa4bad885fad3e5041d4cdfd1c8677bd3d47342.js.map

@@ -1 +0,0 @@
-{"version":3,"sources":["file:///E:/CocosCreator/_Aliens/assets/start/Config/GlobalConfig.ts"],"names":["GlobalConfig","isDebug","initilizeLevel","levelTotal"],"mappings":";;;;;;;;;;;;;;8BAAaA,Y,GAAe;AACxBC,QAAAA,OAAO,EAAE,IADe;AAExBC,QAAAA,cAAc,EAAE,CAFQ;AAEN;AAClBC,QAAAA,UAAU,EAAE,EAHY,CAGN;;AAHM,O","sourcesContent":["export const GlobalConfig = {\r\n    isDebug: true,\r\n    initilizeLevel: 2,//初始关卡\r\n    levelTotal: 20,   //最大关卡等级\r\n}"]}

+ 0 - 29
temp/programming/packer-driver/targets/preview/chunks/ff/ffa4bad885fad3e5041d4cdfd1c8677bd3d47342.js

@@ -1,29 +0,0 @@
-System.register(["cc"], function (_export, _context) {
-  "use strict";
-
-  var _cclegacy, _crd, GlobalConfig;
-
-  return {
-    setters: [function (_cc) {
-      _cclegacy = _cc.cclegacy;
-    }],
-    execute: function () {
-      _crd = true;
-
-      _cclegacy._RF.push({}, "6accf2OQMpNX6qyXp9M6Uqt", "GlobalConfig", undefined);
-
-      _export("GlobalConfig", GlobalConfig = {
-        isDebug: true,
-        initilizeLevel: 2,
-        //初始关卡
-        levelTotal: 20 //最大关卡等级
-
-      });
-
-      _cclegacy._RF.pop();
-
-      _crd = false;
-    }
-  };
-});
-//# sourceMappingURL=ffa4bad885fad3e5041d4cdfd1c8677bd3d47342.js.map

+ 0 - 1
temp/programming/packer-driver/targets/preview/chunks/ff/ffa4bad885fad3e5041d4cdfd1c8677bd3d47342.js.map

@@ -1 +0,0 @@
-{"version":3,"sources":["file:///E:/CocosCreator/_Aliens/assets/start/Config/GlobalConfig.ts"],"names":["GlobalConfig","isDebug","initilizeLevel","levelTotal"],"mappings":";;;;;;;;;;;;;;8BAAaA,Y,GAAe;AACxBC,QAAAA,OAAO,EAAE,IADe;AAExBC,QAAAA,cAAc,EAAE,CAFQ;AAEN;AAClBC,QAAAA,UAAU,EAAE,EAHY,CAGN;;AAHM,O","sourcesContent":["export const GlobalConfig = {\r\n    isDebug: true,\r\n    initilizeLevel: 2,//初始关卡\r\n    levelTotal: 20,   //最大关卡等级\r\n}"]}

+ 0 - 1
temp/startup.json

@@ -1 +0,0 @@
-{"pid":30760}

+ 0 - 27
temp/tsconfig.cocos.json

@@ -1,27 +0,0 @@
-{
-  "$schema": "https://json.schemastore.org/tsconfig",
-  "compilerOptions": {
-    "target": "ES2015",
-    "module": "ES2015",
-    "strict": true,
-    "types": [
-      "./temp/declarations/cc",
-      "./temp/declarations/jsb",
-      "./temp/declarations/cc.custom-macro",
-      "./temp/declarations/cc.env"
-    ],
-    "paths": {
-      "db://internal/*": [
-        "C:\\ProgramData\\cocos\\editors\\Creator\\3.8.2\\resources\\resources\\3d\\engine\\editor\\assets\\*"
-      ],
-      "db://assets/*": [
-        "E:\\CocosCreator\\_Aliens\\assets\\*"
-      ]
-    },
-    "experimentalDecorators": true,
-    "isolatedModules": true,
-    "moduleResolution": "node",
-    "noEmit": true,
-    "forceConsistentCasingInFileNames": true
-  }
-}