Game.cs 339 B

1234567891011121314151617181920212223242526
  1. namespace Base
  2. {
  3. public sealed class Game: Entity
  4. {
  5. private static Scene game;
  6. public static Scene Scene
  7. {
  8. get
  9. {
  10. if (game == null)
  11. {
  12. game = new Scene("Game", SceneType.Game);
  13. }
  14. return game;
  15. }
  16. }
  17. public static void Close()
  18. {
  19. Scene scene = game;
  20. game = null;
  21. scene.Dispose();
  22. }
  23. }
  24. }