/// <summary>
 /// Queue an object for removal during the next update phase.
 /// </summary>
 /// <param name="obj">The object you want removed.</param>
 public void UnregisterObject(GameObject obj)
 {
     objectsToRemove.Enqueue(obj);
 }
 /// <summary>
 /// Registers an object in the objectmanager so that it will be 
 /// updated and drawn.
 /// </summary>
 /// <param name="obj">The object you want to register.</param>
 public void RegisterObject(GameObject obj)
 {
     objects.Add(obj);
 }