IEnumerator BackToMainMenuCoroutine() { returnToMainMenuWindow.SetActive(false); ResumingGame(); PanelFadeOut(); yield return(new WaitForSeconds(TIME_END_GAME)); mySceneManager.MainMenuScene(); }
IEnumerator BackToMainMenuCoroutine() { returnToMainMenuWindow.SetActive(false); ResumingGame(); PanelFadeOut(); yield return(new WaitForSeconds(TIME_END_GAME)); mySceneManager.MainMenuScene(); }