Exemplo n.º 1
0
 // detach the first occurance of actor in the list
 public void detachActor(Actor pActor)
 {
     actors.Remove(pActor);
 }
Exemplo n.º 2
0
 // if list does not contain the actor, insert the actor into the list
 public void attachActor( Actor pActor )
 {
     if (!actors.Contains(pActor))
     {
         actors.Add(pActor);
     }
 }