public void OnUpdate() { if (m_Enable && m_Client.Connected) { m_LoopData = m_Client.Loop(); if (m_LoopData != null) { Debug.Log(":::[Loop]-" + m_LoopData.head.Length); m_Protocol = m_ProtocolMgr.GetProtocol(m_LoopData.head.Type); if (m_Protocol != null) { m_Protocol.HandleMessage(m_LoopData); } } } }