future 1 жил өмнө
parent
commit
97b08ba05b
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      assets/script/main.ts

+ 1 - 1
assets/script/main.ts

@@ -37,8 +37,8 @@ export class main extends Component {
     
     private showHomeView(cb) {
         uiManager.Instance().showUi(config.UI.home,this.home_node,(node:Node)=>{
-            cb && cb()
             node.getComponent(home).init()
+            cb && cb()
         })
     }
 }