public void OnApplicationStart()
        {
            Logger.log.Debug("OnApplicationStart");
            this.controller = new GameObject("GeforceExperienceHotKeyController").AddComponent <GeforceExperienceHotKeyController>();

            BSEvents.earlyMenuSceneLoadedFresh += this.BSEvents_earlyMenuSceneLoadedFresh;
        }
 /// <summary>
 /// Only ever called once, mainly used to initialize variables.
 /// </summary>
 private void Awake()
 {
     // For this particular MonoBehaviour, we only want one instance to exist at any time, so store a reference to it in a static property
     //   and destroy any that are created while one already exists.
     if (instance != null)
     {
         Logger.log?.Warn($"Instance of {this.GetType().Name} already exists, destroying.");
         GameObject.DestroyImmediate(this);
         return;
     }
     GameObject.DontDestroyOnLoad(this); // Don't destroy this object on scene changes
     instance = this;
     SceneManager.activeSceneChanged -= this.SceneManager_activeSceneChanged;
     SceneManager.activeSceneChanged += this.SceneManager_activeSceneChanged;
     Logger.log?.Debug($"{name}: Awake()");
 }
 private void OnDestroy()
 {
     Logger.log?.Debug($"{name}: OnDestroy()");
     instance = null; // This MonoBehaviour is being destroyed, so set the static instance property to null.
 }