Initialize() public abstract method

Initializes the scene.
public abstract Initialize ( ) : void
return void
Ejemplo n.º 1
0
 /// <summary>
 /// Adds a new Scene fluently.
 /// </summary>
 /// <param name="scene">The Scene.</param>
 /// <returns>The specified scene.</returns>
 public Scene AddSceneFluently(Scene scene)
 {
     scene.Initialize();
     scene.LoadContent(SGL.Components.Get <ContentManager>());
     _scenes.Add(scene);
     return(scene);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Adds a new Scene.
 /// </summary>
 /// <param name="scene">The Scene.</param>
 public void AddScene(Scene scene)
 {
     scene.Initialize();
     scene.LoadContent(SGL.Components.Get <ContentManager>());
     _scenes.Add(scene);
 }