/// <summary> /// 销毁游戏数据 /// </summary> public void DestoryGame() { for (int i = 0; i < GameData.m_ObjectList.Count; i++) { GameData.m_ObjectList[i].Destroy(); } GameData.m_ObjectList.Clear(); if (m_NetManager != null) { m_NetManager.OnDisconnect(); } if (m_DelayManager != null) { m_DelayManager.DestoryDelay(); } if (m_BulletManager != null) { m_BulletManager.DestoryAttack(); } }