public void RemoveChild(GameObject child) { lock (Children) { Children.Remove(child); } }
public void AddChild(GameObject child) { child.Parent = this; child.Scene = Scene; lock (Children) { Children.Add(child); } }
public void RemoveActor(GameObject gameObject) { gameObjects.Remove(gameObject); }
public void AddActor(GameObject gameObject) { gameObject.Scene = this; gameObjects.Add(gameObject); }