Beispiel #1
0
 public static void AddGameScene(GameScene gamescene)
 {
     if (!GameScenes.Contains(gamescene))
     {
         GameScenes.Add(gamescene);
     }
 }
 /// <summary>
 /// Add a new scene to the manager collection.
 /// </summary>
 /// <param name="sceneKey">String key used to identify new scene.</param>
 /// <param name="scene">Scene object to be stored in collection.</param>
 public void AddSceneAndStart(string sceneKey, BaseScene scene)
 {
     GameScenes.Add(sceneKey, scene);
     StartScene(sceneKey);
 }
 /// <summary>
 /// Add a new scene to the manager collection.
 /// </summary>
 /// <param name="sceneKey">String key used to identify new scene.</param>
 /// <param name="scene">Scene object to be stored in collection.</param>
 public void AddScene(string sceneKey, BaseScene scene)
 {
     GameScenes.Add(sceneKey, scene);
 }