/// <summary> /// 发送日志到服务器 /// </summary> /// <param name="message">日志内容</param> private static void SendLog(string message) { OP_SYS_LOG_GET proto = new OP_SYS_LOG_GET(); proto.msg = message.ToString(); NetWorkSocket.Instance.Send(proto.encode(), OP_SYS_LOG_GET.CODE, GameCtrl.Instance.SocketHandle); }
public static void LogError(string message) { #if DEBUG_LOG Debug.LogError(message); #endif OP_SYS_LOG_GET proto = new OP_SYS_LOG_GET(); proto.msg = message.ToString(); NetWorkSocket.Instance.Send(proto.encode(), OP_SYS_LOG_GET.CODE, GameCtrl.Instance.SocketHandle); }