| 123456789101112131415161718192021222324252627 |
- namespace Base
- {
- public sealed class Game
- {
- private static Entity game;
- public static Entity Scene
- {
- get
- {
- if (game == null)
- {
- game = new Entity();
- game.AddComponent<Scene>();
- }
- return game;
- }
- }
- public static void Close()
- {
- Entity scene = game;
- game = null;
- scene.Dispose();
- }
- }
- }
|