/// <summary> /// Used to deinitialize the StorageMgr singleton data. /// </summary> public static void Release() { if (m_instance != null) { m_instance.close(); m_instance = null; } }
/// <summary> /// Used to initialize the StorageMgr 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 StorageMgr(); return m_instance.open(); } }