Exemplo n.º 1
0
 /// <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();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Used to deinitialize the PoolManager singleton data.
 /// </summary>
 public static void Release()
 {
     if (m_instance != null)
     {
         m_instance.close();
         m_instance = null;
     }
 }