public void HideCurrentScreen() { UiUtils.FadeOut(this, _currentScreen, fadeDurations); StartCoroutine(ShowScreenAfterFade(false, fadeDurations)); // resume - to do after pause refactor }
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)); } }
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 }