public void Add(SceneBase scene, bool initializeAndLoadContent = false) { if (initializeAndLoadContent) { scene.Initialize(context); scene.LoadContent(); } Scenes.Add(scene); }
public void AddChild(SceneBase parent, SceneBase child, bool initializeAndLoadContent = false) { child.Parent = parent; if (initializeAndLoadContent) { child.Initialize(context); child.LoadContent(); } parent.SceneChildren.Add(child); }