Remove all non-load Game access.

This commit is contained in:
Dean Herbert
2016-10-10 17:17:26 +09:00
parent 48bd998f46
commit 4052a665bf
34 changed files with 129 additions and 100 deletions

View File

@ -23,9 +23,9 @@ namespace osu.Game.GameModes.Menu
protected override BackgroundMode CreateBackground() => new BackgroundModeEmpty();
public override void Load()
public override void Load(Framework.BaseGame game)
{
base.Load();
base.Load(game);
Children = new Drawable[]
{
@ -39,9 +39,9 @@ namespace osu.Game.GameModes.Menu
}
};
AudioSample welcome = Game.Audio.Sample.Get(@"welcome");
AudioSample welcome = game.Audio.Sample.Get(@"welcome");
AudioTrack bgm = Game.Audio.Track.Get(@"circles");
AudioTrack bgm = game.Audio.Track.Get(@"circles");
bgm.Looping = true;
Scheduler.Add(delegate