コード例 #1
0
    public void HideCurrentScreen()
    {
        UiUtils.FadeOut(this, _currentScreen, fadeDurations);
        StartCoroutine(ShowScreenAfterFade(false, fadeDurations));

        // resume - to do after pause refactor
    }
コード例 #2
0
    private IEnumerator HideScreenWithDelay(string screen, float delay)
    {
        yield return(new WaitForSeconds(delay));

        if (screen == _currentScreen.gameObject.name)
        {
            UiUtils.FadeOut(this, _currentScreen, fadeDurations);
            StartCoroutine(ShowScreenAfterFade(false, fadeDurations));
        }
    }
コード例 #3
0
    public void HideScreen(string screen)
    {
        if (screen == _currentScreen.gameObject.name)
        {
            UiUtils.FadeOut(this, _currentScreen, fadeDurations);
            StartCoroutine(ShowScreenAfterFade(false, fadeDurations));
        }

        // resume - to do after pause refactor
    }