示例#1
0
    private IEnumerator QuitAppCo()
    {
        ProgressPlaySound pps = GameObject.Find("ProgressPlaySound").GetComponent <ProgressPlaySound>();

        pps.PlayQuitSound();
        yield return(new WaitWhile(() => pps.SoundSource.isPlaying));

        UnityEngine.SceneManagement.SceneManager.LoadScene("profiles_scene");
    }