Ejemplo n.º 1
0
 /// <summary>
 /// Removing Object from program's ObjectList
 /// Update-Method of every Object in List is called every frame
 /// </summary>
 /// <param name="obj">Object to remove</param>
 public static void RemoveObject(GameObject obj)
 {
     ObjectList.Remove(obj);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Add Object to program's ObjectList
 /// Update-Method of every Object in List is called every frame
 /// </summary>
 /// <param name="obj">Object to add</param>
 public static void AddObject(GameObject obj)
 {
     ObjectList.Add(obj);
 }