IEnumerator WaitForFade() { cinematicFade.FadeIn(); yield return(new WaitForSeconds(1f)); cinematicFade.FadeOut(); PlayTimeline(); }
public void OpenSuccessMenu(string day, string time, string lineNumber) { daySuccess.text = day; timeSuccess.text = time; lineSuccess.text = lineNumber; successMenu.SetActive(true); gameCanvas.FadeOut(); }
public void ResumeGame() { if (!_isPaused) { return; } Time.timeScale = _cachedTimeScale; _cachedCursorMode.Apply(); PauseInterface.FadeOut(() => { PauseInterface.gameObject.SetActive(false); ControlsMenu.Menu.SetClear(); OptionsMenu.Menu.SetClear(); PauseMenu.Menu.gameObject.SetActive(false); ControlsMenu.Menu.gameObject.SetActive(false); OptionsMenu.Menu.gameObject.SetActive(false); }); FadePostProcessingWeight(0f, PostProcessingFadeSpeed); _currentMenu = MainMenu.MenuObject.Empty; _isPaused = false; }
public void DisableMonologue() { StopAllCoroutines(); monoReader.StopAllCoroutines(); //disable text components if (monoReader.usesTMP) { monoReader.the_Text.enabled = false; } else { monoReader.theText.enabled = false; } //textback if (textBack) { textBack.FadeOut(); if (animateTextback) { animateTextback.active = false; } } StartCoroutine(WaitForCameraTransition()); }
private void Internal_ShowMessage(string message, float displayTime) { if (IsShowingMessage) { fader.FadeOut(() => { text.text = message; fader.FadeIn(); _timeLeftUntilFadeOut = displayTime; }); } else { text.text = message; fader.FadeIn(); _timeLeftUntilFadeOut = displayTime; } IsShowingMessage = true; }
IEnumerator ch() { black.SetActive(true); FadeUI.FadeIn(black); yield return(new WaitForSeconds(0.2f)); toUnload.SetActive(false); toLoad.SetActive(true); FadeUI.FadeOut(black); yield return(new WaitForSeconds(0.2f)); black.SetActive(false); }
IEnumerator ch() { FadeUI.FadeIn(black); yield return(new WaitForSeconds(0.5f)); if (toUnload != "") { SceneManager.UnloadSceneAsync(toUnload); } yield return(new WaitForSeconds(delayTime + 1f)); FadeUI.FadeOut(black); if (toLoad != "") { SceneManager.LoadScene(toLoad, LoadSceneMode.Additive); } isChanging = false; yield return(new WaitForSeconds(0.4f)); black.SetActive(false); }
public void Return() { Time.timeScale = 1; fadeUI.FadeOut(); }
protected void LowerCost() { FadeUI ui = board.transform.GetChild(2).GetComponent <FadeUI>(); ui.FadeOut(0.5f, new Color(0, 0, 0, 1)); }