// detach the first occurance of actor in the list public void detachActor(Actor pActor) { actors.Remove(pActor); }
// 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); } }