Пример #1
0
    public static IEnumerator GameFadeIn()
    {
        GlobalAudio.GlobalAudioFadeIn();

        yield return(new WaitForSeconds(.05f));

        //DeacivateIntro();
        PostProcessControl.OpeningFadeEffect(-10, 0, .02f);
    }
Пример #2
0
    public static IEnumerator StartLogo()
    {
        yield return(new WaitForSeconds(_logoSceneTimer));

        PostProcessControl.OpeningFadeEffect(0, -10f, .025f);
        GlobalAudio.GlobalAudioFadeOut();
        yield return(new WaitForSeconds(2f));

        _sceneToLoad.SetActive(true);
    }
Пример #3
0
    public static IEnumerator StartIntro()
    {
        //print("calling start intro co routine");
        _introEnvironment.SetActive(true);
        yield return(new WaitForSeconds(_introSceneTimer));

        PostProcessControl.OpeningFadeEffect(0, -10, .01f);
        GlobalAudio.GlobalAudioFadeOut();
        yield return(new WaitForSeconds(3f));

        _sceneToLoad.SetActive(true);
        //DeacivateIntro();
    }