Ejemplo n.º 1
0
 public static void RemoveObject(GameObject gameObject)
 {
     sceneObjects.Remove(gameObject);
     SceneObjectListChanged?.Invoke(gameObject, new EventArgs());
     ObjectRemoved?.Invoke(gameObject, new EventArgs());
 }
Ejemplo n.º 2
0
 public static void AddObject(GameObject gameObject)
 {
     sceneObjects.Add(gameObject);
     SceneObjectListChanged?.Invoke(gameObject, new EventArgs());
     ObjectAdded?.Invoke(gameObject, new EventArgs());
 }