示例#1
0
    public static void Cull(string poolName, bool smartCull)
    {
        PoolSystem P = GetPoolByName(poolName);

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