public override void DoDestroy() { if (_isVideoMode) { return; } _loginMgr = null; _roomMsgMgr = null; _loginMgr?.DoDestroy(); _roomMsgMgr?.DoDestroy(); }
public override void DoAwake(IServiceContainer services) { _isVideoMode = _constStateService.IsVideoMode; if (_isVideoMode) { return; } _roomMsgMgr = new Client.RoomMsgManager(); _loginMgr = new LoginManager(); _roomMsgMgr.Init(this); _loginMgr.Init(_roomMsgMgr, this, ServerIp, (ushort)ServerPort); _loginMgr.DoAwake(); }