public void GoBack() { NavigationBackdrop.Instance.FadeBrightness(0, onComplete: () => { TranslucentCover.Clear(); NavigationBackdrop.Instance.FadeBrightness(1); }); Context.TierState = null; Context.ScreenManager.ChangeScreen(TierSelectionScreen.Id, ScreenTransition.Out, willDestroy: true); Context.AudioManager.Get("LevelStart").Play(); }
public override void OnScreenChangeStarted(Screen from, Screen to) { base.OnScreenChangeStarted(from, to); if (from == this && to != null) { NavigationBackdrop.Instance.FadeBrightness(0, onComplete: () => { TranslucentCover.Clear(); NavigationBackdrop.Instance.FadeBrightness(1); }); } }