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; }
void PlaySelectSound() { ShallowMusic.Play("UI", 0, BeatValue.Eighth, 0.5f); }
public void PlayGame() { ShallowMusic.Play("UI", 1, BeatValue.Quarter); ShallowGames.NewGame(gameConfig); }