Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 /// <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);
 }