IEnumerator Quit_coroutine() { panelFadeBlackTransition.FadeIn(); yield return(new WaitForSeconds(panelFadeBlackTransition.duration + 0.1f)); SceneManager.LoadScene("Loading"); }
IEnumerator LoadStartScene_Coroutine() { GetComponent <CanvasGroup>().interactable = false; panelFadeBlackTransition.FadeIn(); yield return(new WaitForSeconds(panelFadeBlackTransition.duration + 0.1f)); SceneManager.LoadScene("Loading"); }
private IEnumerator LoadGameScene_Coroutine() { currentMusic.Stop(); gameStart.Play(); panelFadeWhiteTransition.FadeIn(); yield return(new WaitForSeconds(panelFadeWhiteTransition.duration)); PhotonNetwork.LoadLevel("Game"); }