Пример #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);
     }
 }