Browse Source

fixed bug

woso_javan 4 tháng trước cách đây
mục cha
commit
186d1e8179
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      assets/module_movecar/RoosterMoveCar.ts

+ 3 - 1
assets/module_movecar/RoosterMoveCar.ts

@@ -84,7 +84,9 @@ export class RoosterMoveCar extends Component {
         const { level } = LevelManager.instance.levelModel;
         LevelManager.instance.loadLevel(level);
 
-        this.updateScrewsLen();
+        this.scheduleOnce(() => {
+            this.updateScrewsLen();
+        }, 0.2);
     }
 
     private onClickSet(): void {