예제 #1
0
 public void Remove(int item)
 {
     if (ContainedObjects.Remove(item))
     {
         if (Count == 0)
         {
             Partition.RemoveNode(activationID);
             activationID = -1;
         }
     }
 }
예제 #2
0
 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");
     }
 }