Пример #1
0
        protected override void OnUpdating(UltravioletTime time)
        {
            spinnerSprite.Update(time);

            if (loader.IsLoaded)
            {
                var screen = uiScreenService.Get <GameplayScreen>();
                Screens.OpenBelow(screen, this);
                Screens.Close(this);
            }
            base.OnUpdating(time);
        }
Пример #2
0
        protected override void OnUpdating(UltravioletTime time)
        {
            if (IsReadyForInput)
            {
                var input    = Ultraviolet.GetInput();
                var keyboard = input.GetKeyboard();
                var touch    = input.GetPrimaryTouchDevice();

                if (keyboard.IsKeyPressed(Key.Left) || (touch != null && touch.WasTapped()))
                {
                    Screens.Close(this);
                }
            }
            base.OnUpdating(time);
        }
Пример #3
0
 public void CloseSingle(Screens screen)
 {
     screen.Close();
 }