| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- namespace Hotfix
- {
- public static class Hotfix
- {
- private static Scene scene;
- public static Scene Scene
- {
- get
- {
- if (scene != null)
- {
- return scene;
- }
- scene = new Scene();
- return scene;
- }
- }
- private static EventSystem eventSystem;
- public static EventSystem EventSystem
- {
- get
- {
- return eventSystem ?? (eventSystem = new EventSystem());
- }
- }
- private static ObjectPool objectPool;
- public static ObjectPool ObjectPool
- {
- get
- {
- return objectPool ?? (objectPool = new ObjectPool());
- }
- }
- public static void Close()
- {
- scene.Dispose();
- scene = null;
- eventSystem = null;
- objectPool = null;
- }
- }
- }
|