Explorar el Código

车尾效果调整

woso_javan hace 4 meses
padre
commit
f1f79bb8bc

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 506 - 93
assets/module_movecar/Prefabs/CarColorsCars/Bus.prefab


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 504 - 91
assets/module_movecar/Prefabs/CarColorsCars/Minivan.prefab


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 504 - 91
assets/module_movecar/Prefabs/CarColorsCars/Sedan.prefab


+ 4 - 0
assets/module_movecar/RoosterMoveCar.ts

@@ -196,8 +196,10 @@ export class RoosterMoveCar extends Component {
                 parkPoint.name = "inuse"
                 tweenCar.call(() => {
                     const exhasut = car.getChildByName('Exhaust')!;
+                    const Exhaust1 = car.getChildByName('Exhaust1')!;
                     if (exhasut) {
                         exhasut.active = false;
+                        Exhaust1.active = false;
                     }
 
                     car.setParent(parkPoint, true);
@@ -254,8 +256,10 @@ export class RoosterMoveCar extends Component {
         CarUnscrewAudioMgr.playOneShot(CarUnscrewAudioMgr.getMusicIdName(4), 1.0);
 
         const exhasut = car.getChildByName('Exhaust')!;
+        const Exhaust1 = car.getChildByName('Exhaust1')!;
         if (exhasut) {
             exhasut.active = true;
+            Exhaust1.active = true;
         }
 
         const targetV3 = new Vec3(targetWorldPos.x, targetWorldPos.y, 0);

+ 2 - 2
assets/module_movecar/Script/Components/CarCarColorsComponent.ts

@@ -86,15 +86,15 @@ export class CarCarColorsComponent extends Component {
     addRole(role: Node): boolean {
         CarUnscrewAudioMgr.playOneShot(CarUnscrewAudioMgr.getMusicIdName(6), 1.0);
 
+        const levels = find('Canvas/Scene/Levels')!;
         const carParent = this.node.parent
-        const pinParemt = role.parent
         const seat = this.node.getChildByName("Seets").children[this.roleNum]
         const new_pin = instantiate(ResourcePool.instance.get_prefab("pin"))
         const pinWorldPos = role.getWorldPosition().clone()
         const seatWorldPos = seat.getWorldPosition().clone()
 
         const pin_color = role.getComponent(PinComponent)!.pin_color
-        pinParemt.addChild(new_pin)
+        levels.addChild(new_pin)
         new_pin.getComponent(PinComponent)!.pin_color = pin_color
         new_pin.setWorldPosition(pinWorldPos)
 

+ 1 - 1
assets/module_movecar/Script/Systems/UnitColorsSysterm.ts

@@ -80,7 +80,7 @@ export class UnitColorsSysterm extends Component {
     moveToCar() {
         const carColor = this.selectedCar.getComponent(CarCarColorsComponent).carColor
         const pinColor = this.findPins[0].getComponent(PinComponent).pin_color
-        console.log(`上车的颜色${CarColorLog[carColor]} 上车数量:${this.findPins.length}上车的螺丝颜色:${CarColorLog[pinColor]}`);
+        // console.log(`上车的颜色${CarColorLog[carColor]} 上车数量:${this.findPins.length}上车的螺丝颜色:${CarColorLog[pinColor]}`);
 
         if (this.selectedCar != null) {
             this.findPins.forEach(pin => {

BIN
assets/module_movecar/Textures/smoke.png


+ 134 - 0
assets/module_movecar/Textures/smoke.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.26",
+  "importer": "image",
+  "imported": true,
+  "uuid": "7fb6faca-70a7-49f2-bdbf-d0a1620fd78f",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "7fb6faca-70a7-49f2-bdbf-d0a1620fd78f@6c48a",
+      "displayName": "smoke",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "7fb6faca-70a7-49f2-bdbf-d0a1620fd78f",
+        "isUuid": true,
+        "visible": false,
+        "minfilter": "linear",
+        "magfilter": "linear",
+        "mipfilter": "nearest",
+        "anisotropy": 0
+      },
+      "ver": "1.0.22",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "f9941": {
+      "importer": "sprite-frame",
+      "uuid": "7fb6faca-70a7-49f2-bdbf-d0a1620fd78f@f9941",
+      "displayName": "smoke",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": 0,
+        "offsetY": 0,
+        "trimX": 0,
+        "trimY": 0,
+        "width": 54,
+        "height": 62,
+        "rawWidth": 54,
+        "rawHeight": 62,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -27,
+            -31,
+            0,
+            27,
+            -31,
+            0,
+            -27,
+            31,
+            0,
+            27,
+            31,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            0,
+            62,
+            54,
+            62,
+            0,
+            0,
+            54,
+            0
+          ],
+          "nuv": [
+            0,
+            0,
+            1,
+            0,
+            0,
+            1,
+            1,
+            1
+          ],
+          "minPos": [
+            -27,
+            -31,
+            0
+          ],
+          "maxPos": [
+            27,
+            31,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "7fb6faca-70a7-49f2-bdbf-d0a1620fd78f@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "hasAlpha": true,
+    "fixAlphaTransparencyArtifacts": false,
+    "redirect": "7fb6faca-70a7-49f2-bdbf-d0a1620fd78f@f9941"
+  }
+}

+ 3 - 3
assets/module_movecar/rooster_movecar.scene

@@ -2085,7 +2085,7 @@
     },
     "_type": 0,
     "_fillType": 0,
-    "_sizeMode": 1,
+    "_sizeMode": 0,
     "_fillCenter": {
       "__type__": "cc.Vec2",
       "x": 0,
@@ -2432,7 +2432,7 @@
     },
     "_type": 0,
     "_fillType": 0,
-    "_sizeMode": 1,
+    "_sizeMode": 0,
     "_fillCenter": {
       "__type__": "cc.Vec2",
       "x": 0,
@@ -2779,7 +2779,7 @@
     },
     "_type": 0,
     "_fillType": 0,
-    "_sizeMode": 1,
+    "_sizeMode": 0,
     "_fillCenter": {
       "__type__": "cc.Vec2",
       "x": 0,

+ 2 - 1
settings/v2/packages/engine.json

@@ -80,7 +80,7 @@
         "_value": false
       },
       "particle-2d": {
-        "_value": false
+        "_value": true
       },
       "audio": {
         "_value": true
@@ -141,6 +141,7 @@
       "gfx-webgl",
       "intersection-2d",
       "occlusion-query",
+      "particle-2d",
       "physics-2d-box2d",
       "physics-ammo",
       "primitive",

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