protected void LoadMenu() { beatmap.Return(); DidLoadMenu = true; this.Push(mainMenu); }
protected void LoadMenu() { beatmap.Return(); DidLoadMenu = true; if (nextScreen != null) { this.Push(nextScreen); } }
private void endOperation() { if (leasedInProgress == null) { throw new InvalidOperationException("Cannot end operation multiple times."); } leasedInProgress.Return(); leasedInProgress = null; }
public override void OnResuming(IScreen last) { base.OnResuming(last); Debug.Assert(selectionLease != null); selectionLease.Return(); selectionLease = null; if (SelectedRoom.Value?.RoomID.Value == null) { SelectedRoom.Value = new Room(); } music?.EnsurePlayingSomething(); onReturning(); }