IEnumerator <WaitCommand> OnExit() { OnSuspend(); yield return(CameraTransitions.FadeOut(_data.CameraManager.Rig.ScreenFader, _data.GameClock, _data.FaderSettings).AsWaitCommand()); _data.MainMenuView.Hide(); }
IEnumerator <WaitCommand> OnExit() { _closeListener.Dispose(); yield return(WaitCommand.WaitRoutine(CameraTransitions.FadeOut(_data.CameraManager.Rig.ScreenFader, _data.Clock, _data.FaderSettings))); _data.CourseEditor.enabled = false; }
private IEnumerator <WaitCommand> FadeOut() { yield return (CameraTransitions.FadeOut(_data.GameClock, _data.FaderSettings, lerp => { _data.CameraManager.Rig.ScreenFader.Opacity = lerp; _data.SoundMixer.SetVolume(SoundLayer.Effects, 1f - lerp); }).AsWaitCommand()); }
IEnumerator <WaitCommand> OnExit() { _onPausePressed.Dispose(); _data.ViewModel.RequestJoin -= OnRequestJoin; _data.ViewModel.RequestCancelJoin -= OnRequestCancelJoin; yield return(CameraTransitions.FadeOut(_data.CameraManager.Rig.ScreenFader, _data.GameClock, _data.FaderSettings).AsWaitCommand()); _data.View.gameObject.SetActive(false); }
IEnumerator <WaitCommand> OnExit() { yield return(WaitCommand.WaitRoutine(CameraTransitions.FadeOut(_data.CameraManager.Rig.ScreenFader, _data.MenuClock, _data.FaderSettings))); _playingStateMachine.Transition(PlayingStates.Initial); yield return(_data.PlayerPilotSpawner.Despawn().AsWaitCommand()); _data.ChallengeAnnouncerUi.enabled = false; _data.JoystickActivator.enabled = true; _data.ThirdPersonCameraController.enabled = false; }
IEnumerator <WaitCommand> OnExit() { OnSuspend(); yield return(WaitCommand.WaitRoutine(CameraTransitions.FadeOut(_data.CameraManager.Rig.ScreenFader, _data.MenuClock, _data.FaderSettings))); _data.CameraAnimator.enabled = false; var spawnpointBillboards = _uiState.To(s => s.SpawnpointUIList).To(s => s.Items).Get(); for (int i = 0; i < spawnpointBillboards.Count; i++) { spawnpointBillboards[i].SetActive(false); } }