void OnDestroy() { m_GameNet.Destroy(); if (null != m_Reciver) { m_Reciver.Destroy(); } if (null != m_Sender) { m_Sender.Destroy(); } }
void OnDestroy() { m_Destroy = true; m_GameNet.Destroy(); m_Reciver.Destroy(); m_Sender.Destroy(); }