Exemplo n.º 1
0
    public static void Cull(string poolName, bool smartCull)
    {
        PoolSystem P = GetPoolByName(poolName);

        if (P)
        {
            P.Cull();
        }
    }
Exemplo n.º 2
0
 public static void Despawn(GameObject item)
 {
     if (item)
     {
         PoolSystem P = GetPoolByItem(item);
         if (P != null)
         {
             P.Cull();
         }
         else
         {
             GameObject.Destroy(item);
         }
     }
 }