Skip to content

Commit

Permalink
fixed blue bear sound bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatZeoGal authored and minenice55 committed May 14, 2024
1 parent 4313e35 commit 4a4bf78
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Assets/Scripts/Games/BlueBear/BlueBear.cs
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,8 @@ public void SpawnTreat(double beat, bool isCake, double gameSwitchBeat, bool lon

public static void TreatSound(double beat, bool isCake)
{
SoundByte.PlayOneShot(isCake ? "games/blueBear/cake" : "games/blueBear/donut", beat);
// Debug.Log("Playing Treat Sound on beat " + beat);
SoundByte.PlayOneShotGame(isCake ? "blueBear/cake" : "blueBear/donut", beat, forcePlay: true);
}

public void SquashBag(bool isCake)
Expand Down
1 change: 1 addition & 0 deletions Assets/Scripts/Util/SoundByte.cs
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ public static Sound PlayOneShot(string name, double beat = -1, float pitch = 1f,
}

oneShotAudioSource.PlayOneShot(clip, volume);
// Debug.Log("Played Sound");
return null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,5 +402,6 @@ MonoBehaviour:
- Assets/Scripts/Games/LoveLab/LoveLabHeartMisc.cs
- Assets/Scripts/Games/LaunchParty/LaunchPartyRocket.cs
- Assets/Scripts/Util/BeatAction.cs
- Assets/Scripts/Games/FanClub/NtrIdolAri.cs
PathsToSkipImportEvent: []
PathsToIgnoreOverwriteSettingOnAttribute: []

0 comments on commit 4a4bf78

Please sign in to comment.