remove constructor argument from Banana

This commit is contained in:
OliBomby
2023-05-02 12:41:39 +02:00
parent d2d81bb82c
commit 90d98cd329
2 changed files with 9 additions and 4 deletions

View File

@ -1,7 +1,9 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using System.Threading;
using osu.Game.Audio;
using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.Objects.Types;
@ -35,10 +37,11 @@ namespace osu.Game.Rulesets.Catch.Objects
{
cancellationToken.ThrowIfCancellationRequested();
AddNested(new Banana(GetSampleInfo().Volume)
AddNested(new Banana
{
StartTime = time,
BananaIndex = i,
Samples = new List<HitSampleInfo> { new Banana.BananaHitSampleInfo(GetSampleInfo().Volume) }
});
time += spacing;