Use [Resolved] wherever possible

This commit is contained in:
recapitalverb
2020-02-14 20:14:00 +07:00
parent 6d87d22a84
commit c753cb46c5
35 changed files with 128 additions and 169 deletions

View File

@ -21,7 +21,8 @@ namespace osu.Game.Skinning
private SampleChannel[] channels;
private ISampleStore samples;
[Resolved]
private ISampleStore samples { get; set; }
public SkinnableSound(IEnumerable<ISampleInfo> hitSamples)
{
@ -33,12 +34,6 @@ namespace osu.Game.Skinning
this.hitSamples = new[] { hitSamples };
}
[BackgroundDependencyLoader]
private void load(ISampleStore samples)
{
this.samples = samples;
}
private bool looping;
public bool Looping