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