예제 #1
0
        protected void LoadMenu()
        {
            beatmap.Return();

            DidLoadMenu = true;
            this.Push(mainMenu);
        }
예제 #2
0
        protected void LoadMenu()
        {
            beatmap.Return();

            DidLoadMenu = true;
            if (nextScreen != null)
            {
                this.Push(nextScreen);
            }
        }
예제 #3
0
        private void endOperation()
        {
            if (leasedInProgress == null)
            {
                throw new InvalidOperationException("Cannot end operation multiple times.");
            }

            leasedInProgress.Return();
            leasedInProgress = null;
        }
예제 #4
0
        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();
        }