Ejemplo n.º 1
0
 public void TogglePause()
 {
     IsPaused = !IsPaused;
     if (IsPaused)
     {
         previousUIModeType = uiMode.selectedMode;
         uiMode.SetUIMode(UIModeType.NORMAL, false);
         foreach (LightsManager e in platform.gameObject.GetComponentsInChildren <LightsManager>())
         {
             e.ChangeAlpha(0, 1, e.ControllingLights);
         }
     }
     else
     {
         uiMode.SetUIMode(previousUIModeType, false);
     }
     StartCoroutine(TransitionMenu());
 }
Ejemplo n.º 2
0
 public void TogglePause()
 {
     IsPaused = !IsPaused;
     if (IsPaused)
     {
         CMInputCallbackInstaller.DisableActionMaps(typeof(PauseManager), disabledActionMaps);
         previousUIModeType = uiMode.selectedMode;
         uiMode.SetUIMode(UIModeType.NORMAL, false);
         foreach (LightsManager e in platform.gameObject.GetComponentsInChildren <LightsManager>())
         {
             e.ChangeAlpha(0, 1, e.ControllingLights);
         }
     }
     else
     {
         CMInputCallbackInstaller.ClearDisabledActionMaps(typeof(PauseManager), disabledActionMaps);
         uiMode.SetUIMode(previousUIModeType, false);
     }
     StartCoroutine(TransitionMenu());
 }