xx пре 1 година
родитељ
комит
99bf39de8c

+ 7 - 7
assets/script/game/car.ts

@@ -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)
         }

+ 5 - 5
assets/script/game/cheyin/cheyin_manager.ts

@@ -35,11 +35,11 @@ export class cheyin_manager extends Component {
     }
 
     public showCheYin(){
-        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(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)
+        // }
         // let node = this.getCanUseItem()
         // node.getComponent(cheyin_item).show()
     }

+ 1 - 1
assets/script/game/effect/weiqi_item.ts

@@ -45,7 +45,7 @@ export class weiqi_item extends Component {
 
     protected update(dt: number): void {
         if(this.old_pos!=null){
-            this.node.position = new Vec3(this.node.position.x,this.node.position.y-dt*200)
+            this.node.position = new Vec3(this.node.position.x,this.node.position.y-dt*100)
             if(Vec3.distance(this.node.position,this.old_pos)>150){
                 this.hide()
             }