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