xx 1 년 전
부모
커밋
8f9d016851
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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