Пример #1
0
 void onGameSceneLoadRequested(GameScenes scene)
 {
     if (keyDisabler != null)
     {
         keyDisabler.restoreAllKeys();
     }
 }
Пример #2
0
        void Start()
        {
            keyDisabler = KeyDisabler.instance;

            /*GameEvents.onLaunch.Add((v) =>
             * {
             *  if (ConfigUtil.ForceIVA()) { CameraManager.Instance.SetCameraIVA(); disableKeys(); }
             * });*/

            GameEvents.onVesselChange.Add(onVesselChange);
            GameEvents.OnCameraChange.Add(OnCameraChange);
            GameEvents.OnIVACameraKerbalChange.Add(OnIVACameraKerbalChange);
            GameEvents.onGameSceneLoadRequested.Add(onGameSceneLoadRequested);

            reviewDataKey = ConfigUtil.checkKeys();
            recoverKey    = ConfigUtil.RecoverKey();
            keyDisabler.restoreAllKeys();
        }