public static void RemoveActor(Actor actor) { if (Actors.Contains(actor)) { Actors.Remove(actor); ElementManager.GameElements.Remove(actor); } }
public static void AddActor(Actor actor) { if (!Actors.Contains(actor)) { Actors.Add(actor); ElementManager.GameElements.Add(actor); } }