/// <summary> /// 释放 /// </summary> public static void ReleaseGameKit() { Int32 nSize = ms_SingletonKitList == null ? 0 : ms_SingletonKitList.Count; for (Int32 i = 0; i < nSize; ++i) { IGameSingleton gameKit = ms_SingletonKitList[i]; if (gameKit == null) { continue; } gameKit.Release(); } }
/// <summary> /// 销毁所有注册单件 /// </summary> public static void Release() { if (m_SingletonList == null) { return; } Int32 nSize = m_SingletonList.Count; for (Int32 i = 0; i < nSize; ++i) { IGameSingleton singleton = m_SingletonList[i]; if (singleton == null) { continue; } singleton.Release(); } }