| 123456789101112131415161718192021222324252627 |
- namespace Hotfix
- {
- public static class Hotfix
- {
- private static Scene scene;
- public static Scene Scene
- {
- get
- {
- if (scene != null)
- {
- return scene;
- }
- scene = new Scene();
- scene.AddComponent<TimerComponent>();
- return scene;
- }
- }
-
- public static void Close()
- {
- scene.Dispose();
- scene = null;
- }
- }
- }
|