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();
     }
 }