render optimization
This commit is contained in:
@@ -26,6 +26,7 @@ export class BattleManager extends Component {
|
||||
await this.loadRes()
|
||||
this.initScene()
|
||||
await this.connectServer()
|
||||
// 在场景初始化完毕之前,卡主别的玩家,准备好以后再告知服务器,等所有玩家都准备好以后才开始,这里就不做了
|
||||
NetworkManager.Instance.listenMsg(ApiMsgEnum.MsgServerSync, this.handleSync);
|
||||
this.isInited = true
|
||||
}
|
||||
|
Reference in New Issue
Block a user