コード例 #1
0
 private void _onConnectionClosed(Int32 _stream_id, PacketType _packet_type, DisconnectMsg _msg)
 {
     Utility.Log.Warning("与游戏服务器的连接已经断开");
     //TODO 链接断开,自动重连
     Entity.m_connect_in = 10f;
     FiniteStateMachine.ChangeStateTo(NetWorkStateType.Connecting);
 }
コード例 #2
0
 private void _onGameSrvDisconnected(Int32 _stream_id, PacketType _packet_type, DisconnectMsg _msg)
 {
     _onLoginFail("GameSrv_AbnormalDisconnection");
 }