mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 15:12:57 +08:00
Fix TestSceneSkinnableSound
not doing DI correctly
This commit is contained in:
parent
b13b732e02
commit
c39ea85701
@ -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")));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user