|
@@ -414,13 +414,13 @@ export class car extends Component {
|
|
|
|
|
|
public setDisDir(dis:number){
|
|
|
this.speed_bei = dis / 10
|
|
|
- // if(this.speed_bei>5){
|
|
|
- // if(userDataManager.user_car_list.default_car_id==1){
|
|
|
- // audioManager.Instance().playSound(config.AUDIO.zi_xing_che_sha_che)
|
|
|
- // }else{
|
|
|
- // audioManager.Instance().playSound(config.AUDIO.car_sha_che,0.1)
|
|
|
- // }
|
|
|
- // }
|
|
|
+ if(this.speed_bei>5){
|
|
|
+ if(userDataManager.user_car_list.default_car_id==1){
|
|
|
+ audioManager.Instance().playSound(config.AUDIO.zi_xing_che_sha_che)
|
|
|
+ }else{
|
|
|
+ audioManager.Instance().playSound(config.AUDIO.car_sha_che,0.1)
|
|
|
+ }
|
|
|
+ }
|
|
|
if(this.carDir==DirType.LEFT){
|
|
|
this.mDir = new Vec3(this.node.position.x-dis,this.node.position.y)
|
|
|
}
|