mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Fix TestSceneSkinnableSound
not doing DI correctly
This commit is contained in:
@ -29,14 +29,13 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
{
|
{
|
||||||
AddStep("setup hierarchy", () =>
|
AddStep("setup hierarchy", () =>
|
||||||
{
|
{
|
||||||
Children = new Drawable[]
|
Child = skinSource = new TestSkinSourceContainer
|
||||||
{
|
|
||||||
skinSource = new TestSkinSourceContainer
|
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Child = skinnableSound = new PausableSkinnableSound(new SampleInfo("Gameplay/normal-sliderslide"))
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// has to be added after the hierarchy above else the `ISkinSource` dependency won't be cached.
|
||||||
|
skinSource.Add(skinnableSound = new PausableSkinnableSound(new SampleInfo("Gameplay/normal-sliderslide")));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user