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