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); }
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); }
public void CloseSingle(Screens screen) { screen.Close(); }