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