예제 #1
0
        IEnumerator PlaySoundCoroutine()
        {
            soundPlaying = true;

            ShallowMusic.Play("Speech/Player", BeatValue.Quarter);
            yield return(new WaitForBeat(BeatValue.Quarter));

            ShallowMusic.Play("Speech/" + (playerID + 1), BeatValue.Eighth);
            yield return(new WaitForBeat(BeatValue.Eighth));

            if (currentPlayer != null)
            {
                ShallowMusic.Play("Speech/Joined", BeatValue.Eighth);
            }
            else
            {
                ShallowMusic.Play("Speech/Left", BeatValue.Eighth);
            }

            soundPlaying = false;
        }
예제 #2
0
 void PlaySelectSound()
 {
     ShallowMusic.Play("UI", 0, BeatValue.Eighth, 0.5f);
 }
예제 #3
0
 public void PlayGame()
 {
     ShallowMusic.Play("UI", 1, BeatValue.Quarter);
     ShallowGames.NewGame(gameConfig);
 }