示例#1
0
    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");
    }
示例#3
0
    private IEnumerator LoadGameScene_Coroutine()
    {
        currentMusic.Stop();
        gameStart.Play();
        panelFadeWhiteTransition.FadeIn();
        yield return(new WaitForSeconds(panelFadeWhiteTransition.duration));

        PhotonNetwork.LoadLevel("Game");
    }