// Removes an IPGameObject from the manager if it exists public static void RemoveIPGameObject(IPGameObject obj) { if (gameObjects.Contains(obj)) gameObjects.Remove(obj); }
// This is called by each IPGameObject when it starts up. It adds the object // to the manager if it is not already there. public static void AddIPGameObject(IPGameObject obj) { if (!gameObjects.Contains(obj)) gameObjects.Add(obj); }