private void NavigationService_BackRequested(object sender, BackRequestedEventArgs e) { BackEvent?.Invoke(sender, e); bool handled = e.Handled; if (!e.Handled) { this.BackRequested(ref handled); } e.Handled = handled; }
public void Back() { currentState = State.OnStart; LeanTween.cancel(gameObject); startMarker.Deactivate(); isOnStartPosition = true; onParking = false; collider.enabled = false; float time = 0.3f; LeanTween.move(gameObject, initialPosition, time).setOnComplete(() => { collider.enabled = true; }); LeanTween.rotate(gameObject, initialRotation.eulerAngles, time); BackEvent?.Invoke(); }
protected override void HandleBackEvent(BackEvent ev) { SetState(State.Pause); }
protected override void HandleBackEvent(BackEvent ev) { _ReturnButtonClick(); }
protected virtual void HandleBackEvent(BackEvent ev) { ReturnToPrevious(); }
private void btnBack_Click(object sender, RoutedEventArgs e) { BackEvent?.Invoke(this, new EventArgs()); }
protected override void HandleBackEvent(BackEvent ev) { _MenuButtonClick(); }