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