Example #1
0
 public void AddScene(AbstractScene scene)
 {
     if (scenes.ContainsKey(scene.GetName()))
     {
         throw new Exception("Scene name already exists!");
     }
     scenes.Add(scene.GetName(), scene);
     scene.Camera = camera;
     scene.SetSceneManager(this);
     if (scene.Preload)
     {
         scene.InternalLoad();
     }
 }
Example #2
0
 public void RemoveScene(AbstractScene scene)
 {
     scenes.Remove(scene.GetName());
 }
Example #3
0
 public void LoadScene(AbstractScene scene)
 {
     LoadScene(scene.GetName());
 }
Example #4
0
 public void StartScene(AbstractScene scene)
 {
     StartScene(scene.GetName());
 }