protected override bool OnStart() { if (player != null) { return(false); } collection.CurrentBeatmap.Value.Song.Looping = false; LoadComponentAsync(player = new Play.Play(), l => { if (this.IsCurrentScreen()) { this.Push(player); } }); return(true); }
public override void OnResuming(IScreen last) { player = null; base.OnResuming(last); }