From 6b3a6d158aec0cee0d7f120d6a3ffeef02580960 Mon Sep 17 00:00:00 2001 From: KrispyDotlessI <92911290+KrispyDotlessI@users.noreply.github.com> Date: Sat, 10 Sep 2022 21:38:51 +0800 Subject: [PATCH] i hate multisound for being 0.10 beats late --- Assets/Scripts/Games/CoinToss/CoinToss.cs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Assets/Scripts/Games/CoinToss/CoinToss.cs b/Assets/Scripts/Games/CoinToss/CoinToss.cs index 4c2240a0..8418665a 100644 --- a/Assets/Scripts/Games/CoinToss/CoinToss.cs +++ b/Assets/Scripts/Games/CoinToss/CoinToss.cs @@ -168,14 +168,15 @@ namespace HeavenStudio.Games switch (type) { case (int) CoinToss.CoinVariation.Cowbell: - Jukebox.PlayOneShotGame("coinToss/cowbell1"); //this was intentional. it was to avoid the throw and cowbells to go offbeat. + //this was intentional. it was to avoid the throw and cowbells to go offbeat. + Jukebox.PlayOneShotGame("coinToss/cowbell1"); MultiSound.Play(new MultiSound.Sound[] { - new MultiSound.Sound("coinToss/cowbell2", beat + 1f), - new MultiSound.Sound("coinToss/cowbell1", beat + 2f), - new MultiSound.Sound("coinToss/cowbell2", beat + 3f), - new MultiSound.Sound("coinToss/cowbell1", beat + 4f), - new MultiSound.Sound("coinToss/cowbell2", beat + 5f), - new MultiSound.Sound("coinToss/cowbell1", beat + 6f), + new MultiSound.Sound("coinToss/cowbell2", beat + 1f, offset: 0.01f), + new MultiSound.Sound("coinToss/cowbell1", beat + 2f, offset: 0.01f), + new MultiSound.Sound("coinToss/cowbell2", beat + 3f, offset: 0.01f), + new MultiSound.Sound("coinToss/cowbell1", beat + 4f, offset: 0.01f), + new MultiSound.Sound("coinToss/cowbell2", beat + 5f, offset: 0.01f), + new MultiSound.Sound("coinToss/cowbell1", beat + 6f, offset: 0.01f), }); break; default: