public void Remove(int item) { if (ContainedObjects.Remove(item)) { if (Count == 0) { Partition.RemoveNode(activationID); activationID = -1; } } }
public void Remove(int item) { //todo get rid of this linear search if (ContainedDynamicObjects.Remove(item)) { if (DynamicCount == 0) { Partition.RemoveNode(activationID); activationID = -1; } } }
public void Remove(int item) { //todo get rid of this linear search if (ContainedDynamicObjects.Remove(item)) { if (DynamicCount == 0) { Partition.RemoveNode(activationID); activationID = -1; } } else { Debug.LogError("Item not removed"); } }