Esempio n. 1
0
    IEnumerator WaitForFade()
    {
        cinematicFade.FadeIn();
        yield return(new WaitForSeconds(1f));

        cinematicFade.FadeOut();
        PlayTimeline();
    }
Esempio n. 2
0
 public void OpenSuccessMenu(string day, string time, string lineNumber)
 {
     daySuccess.text  = day;
     timeSuccess.text = time;
     lineSuccess.text = lineNumber;
     successMenu.SetActive(true);
     gameCanvas.FadeOut();
 }
Esempio n. 3
0
    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());
    }
Esempio n. 5
0
    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;
    }
Esempio n. 6
0
    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);
    }
Esempio n. 7
0
    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);
    }
Esempio n. 8
0
 public void Return()
 {
     Time.timeScale = 1;
     fadeUI.FadeOut();
 }
Esempio n. 9
0
    protected void LowerCost()
    {
        FadeUI ui = board.transform.GetChild(2).GetComponent <FadeUI>();

        ui.FadeOut(0.5f, new Color(0, 0, 0, 1));
    }