xx 1 year ago
parent
commit
8f9d016851
1 changed files with 3 additions and 0 deletions
  1. 3 0
      assets/script/game/car.ts

+ 3 - 0
assets/script/game/car.ts

@@ -420,6 +420,9 @@ export class car extends Component {
 
 
     public setDisDir(dis:number){
+        if(!this.isStartGame){
+            return
+        }
         this.speed_bei = dis / 7
         if(this.speed_bei>5){
             dis*=3