Esempio n. 1
0
    IEnumerator ShowLogo( )
    {
        if (isWork)
        {
            yield break;
        }
        isWork = true;
        yield return(StartCoroutine(schoolLogo.Appear(1f)));

        yield return(new WaitForSecondsRealtime(2f));

        yield return(StartCoroutine(schoolLogo.Disappear(1f)));

        yield return(StartCoroutine(teamLogo.Appear(1f)));

        yield return(new WaitForSecondsRealtime(2f));

        yield return(StartCoroutine(teamLogo.Disappear(1f)));

        MonoSingleton <TransitionManager> .Instance.OnSceneTransition(SceneName.Login, TransitionType.Blank, TransitionType.Slide);

        isWork = false;
    }