Add osu!catch banana catching sounds

This commit is contained in:
Dean Herbert
2020-07-30 17:58:49 +09:00
parent e60c085bf2
commit 6b9102b2a4
3 changed files with 37 additions and 3 deletions

View File

@ -40,6 +40,13 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawables
float getRandomAngle() => 180 * (RNG.NextSingle() * 2 - 1);
}
public override void PlaySamples()
{
base.PlaySamples();
if (Samples != null)
Samples.Frequency.Value = 0.77f + ((Banana)HitObject).BananaIndex * 0.006f;
}
private Color4 getBananaColour()
{
switch (RNG.Next(0, 3))