Ejemplo n.º 1
0
 // Removes an IPGameObject from the manager if it exists
 public static void RemoveIPGameObject(IPGameObject obj)
 {
     if (gameObjects.Contains(obj))
         gameObjects.Remove(obj);
 }
Ejemplo n.º 2
0
 // 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);
 }