1234567891011121314151617181920212223242526272829303132333435363738 |
- using UnityEngine;
- using System.Collections;
- namespace Engine.Net
- {
- /// <summary>消息日志</summary>
- public class NetMsgLog
- {
- /// <summary>是否调试消息</summary>
- public static bool IsDebugMsg = false;
- /// <summary>构造函数</summary>
- public NetMsgLog()
- {
- }
- /// <summary>接收消息</summary>
- public void ResMessage(NetMsg netMsg)
- {
- if (IsDebugMsg)
- {
- //CDebug.Log("收到消息: code=" + netMsg.nCode + " nBodyLeng=" + netMsg.nBodyLeng);
- }
- }
- /// <summary>发送消息</summary>
- public void SendMessage(NetMsg netMsg)
- {
- if (IsDebugMsg)
- {
- //CDebug.Log("发送消息: code=" + netMsg.nCode + " nBodyLeng=" + netMsg.arrData.Length);
- }
- }
- }
- }
|