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