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

@ -30,15 +30,21 @@ namespace osu.Game.Rulesets.Catch.Objects
if (spacing <= 0)
return;
for (double i = StartTime; i <= EndTime; i += spacing)
double time = StartTime;
int i = 0;
while (time <= EndTime)
{
cancellationToken.ThrowIfCancellationRequested();
AddNested(new Banana
{
Samples = Samples,
StartTime = i
StartTime = time,
BananaIndex = i,
});
time += spacing;
i++;
}
}