コード例 #1
0
        IEnumerator <WaitCommand> OnExit()
        {
            OnSuspend();
            yield return(CameraTransitions.FadeOut(_data.CameraManager.Rig.ScreenFader, _data.GameClock, _data.FaderSettings).AsWaitCommand());

            _data.MainMenuView.Hide();
        }
コード例 #2
0
        IEnumerator <WaitCommand> OnExit()
        {
            _closeListener.Dispose();
            yield return(WaitCommand.WaitRoutine(CameraTransitions.FadeOut(_data.CameraManager.Rig.ScreenFader, _data.Clock, _data.FaderSettings)));

            _data.CourseEditor.enabled = false;
        }
コード例 #3
0
ファイル: FlyWingsuit.cs プロジェクト: swipswaps/VoloAirsport
 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());
 }
コード例 #4
0
        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);
        }
コード例 #5
0
ファイル: Playing.cs プロジェクト: swipswaps/VoloAirsport
        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;
        }
コード例 #6
0
ファイル: SpawnScreen.cs プロジェクト: swipswaps/VoloAirsport
        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);
            }
        }