Ver código fonte

效果修改

woso_javan 4 meses atrás
pai
commit
9f1abf42a8

+ 9 - 1
assets/module_movecar/Script/Components/CarCarColorsComponent.ts

@@ -198,18 +198,26 @@ export class CarCarColorsComponent extends Component {
     carOutTween() {
         const rightPointPos = find("Canvas/Scene/Grounds/PhysicRoodTop/RightPoint")!.getWorldPosition();
         const carWorldPos = this.node.getWorldPosition().clone();
+
         tween(this.node)
             .to(0.2, {
                 worldPosition: new Vec3(carWorldPos.x, carWorldPos.y - 100, carWorldPos.z)
             }
             )
             .call(() => {
+                const exhasut = this.node.getChildByName('Exhaust')!;
+                const Exhaust1 = this.node.getChildByName('Exhaust1')!;
+                if (exhasut) {
+                    exhasut.active = true;
+                    Exhaust1.active = true;
+                }
+
                 const targetV3 = new Vec3(rightPointPos.x, rightPointPos.y, 0);
                 const up = new Vec3(0, 0, -1);
                 this.node.lookAt(targetV3, up);
             })
             .delay(0.1)
-            .to(0.2, {
+            .to(0.4, {
                 worldPosition: new Vec3(view.getVisibleSize().x + 200, rightPointPos.y, 0)
             })
             .call(() => {

+ 0 - 2
assets/module_movecar/Script/Systems/UnitColorsSysterm.ts

@@ -78,8 +78,6 @@ 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]}`);
 
         if (this.selectedCar != null) {