/// <summary> /// Used to initialize the PoolManager singleton instance /// </summary> ///<returns>True if everything went ok</returns> public static bool Init() { if (m_instance != null) { Debug.LogError("Second initialisation not allowed"); return false; } else { m_instance = new PoolMgr(); return m_instance.open(); } }
/// <summary> /// Used to deinitialize the PoolManager singleton data. /// </summary> public static void Release() { if (m_instance != null) { m_instance.close(); m_instance = null; } }