public static void Cull(string poolName, bool smartCull) { PoolSystem P = GetPoolByName(poolName); if (P) { P.Cull(); } }
public static void Despawn(GameObject item) { if (item) { PoolSystem P = GetPoolByItem(item); if (P != null) { P.Cull(); } else { GameObject.Destroy(item); } } }