Пример #1
0
 void Awake()
 {
     SingletonUtil.Awake(ref instance, this);
     if (Platform.isEditor)
     {
         menuCode = KeyCode.Space;
     }
     SceneManager.sceneLoaded += OnSceneLoaded;
 }
Пример #2
0
 void OnDestroy()
 {
     SingletonUtil.OnDestroy(ref instance, this);
     SceneManager.sceneLoaded -= OnSceneLoaded;
 }