|
@@ -3,7 +3,7 @@ import { EventDispatcher } from 'db://assets/core_tgx/easy_ui_framework/EventDis
|
|
|
import { tgxUIMgr } from 'db://assets/core_tgx/tgx';
|
|
|
import { UI_BattleResult } from 'db://assets/scripts/UIDef';
|
|
|
import { CarColorsGlobalInstance } from '../CarColorsGlobalInstance';
|
|
|
-import { CarColors, CarDir, CarTypes } from '../CarColorsGlobalTypes';
|
|
|
+import { CarColorLog, CarColors, CarDir, CarTypes } from '../CarColorsGlobalTypes';
|
|
|
import { GameEvent } from '../Enum/GameEvent';
|
|
|
import { LevelAction } from '../LevelAction';
|
|
|
import { LevelManager } from '../Manager/LevelMgr';
|
|
@@ -201,7 +201,7 @@ export class CarCarColorsComponent extends Component {
|
|
|
|
|
|
tween(this.node)
|
|
|
.to(0.2, {
|
|
|
- worldPosition: new Vec3(carWorldPos.x, carWorldPos.y - 100, carWorldPos.z)
|
|
|
+ worldPosition: new Vec3(carWorldPos.x, carWorldPos.y - 50, carWorldPos.z)
|
|
|
}
|
|
|
)
|
|
|
.call(() => {
|
|
@@ -256,6 +256,7 @@ export class CarCarColorsComponent extends Component {
|
|
|
const collider = results[0].collider;
|
|
|
//碰到车
|
|
|
if (collider.group == 1 << 1) {
|
|
|
+ console.log(`${CarColorLog[this.carColor]}色车 --> 前方障碍物有${results.length}个`);
|
|
|
return results.length
|
|
|
}
|
|
|
}
|