예제 #1
0
 public static void RemoveActor(Actor actor)
 {
     if (Actors.Contains(actor))
     {
         Actors.Remove(actor);
         ElementManager.GameElements.Remove(actor);
     }
 }
예제 #2
0
 public static void AddActor(Actor actor)
 {
     if (!Actors.Contains(actor))
     {
         Actors.Add(actor);
         ElementManager.GameElements.Add(actor);
     }
 }