Esempio n. 1
0
 void Awake()
 {
     SingletonUtil.Awake(ref instance, this);
     if (Platform.isEditor)
     {
         menuCode = KeyCode.Space;
     }
     SceneManager.sceneLoaded += OnSceneLoaded;
 }
Esempio n. 2
0
 void OnDestroy()
 {
     SingletonUtil.OnDestroy(ref instance, this);
     SceneManager.sceneLoaded -= OnSceneLoaded;
 }