void Disconnected(DisconnectType dis, string msg) { Close(); string protocal = dis == DisconnectType.System ? SocketStatusCMD.Exception : SocketStatusCMD.Disconnect; NetBuffer buffer = new NetBuffer(); buffer.WriteString(protocal); SocketClientManager.AddEvent(protocal, buffer); DebugConsole.LogError("Disconnected :>" + msg + " DisconnectType:>" + dis); }