Example #1
0
 public void Release(string poolName, GameObject go)
 {
     if (m_GameObjectPools.ContainsKey(poolName))
     {
         GameObjectPool pool = m_GameObjectPools[poolName];
         pool.ReturnObjectToPool(poolName, go);
     }
     else
     {
         LogManager.Warning("No pool available with name: " + poolName);
     }
 }
Example #2
0
 public void Release(string poolName, GameObject go)
 {
     if (m_GameObjectPools.ContainsKey(poolName))
     {
         GameObjectPool pool = m_GameObjectPools[poolName];
         go.transform.SetParent(null);
         pool.ReturnObjectToPool(poolName, go);
     }
     else
     {
         Debug.LogWarning("No pool available with name: " + poolName);
     }
 }