コード例 #1
0
    IEnumerator changeSongTime(songIndex si, float wait)
    {
        songDown.TransitionTo(wait);
        yield return(new WaitForSeconds(wait));

        song.enabled = false;
        song.clip    = songClips[(int)si];
        songUp.TransitionTo(wait);
    }
コード例 #2
0
 void changeSong(songIndex si, float wait)
 {
     StartCoroutine(changeSongTime(si, wait));
 }