コード例 #1
0
        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;
        }
コード例 #2
0
    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();
    }
コード例 #3
0
 protected override void HandleBackEvent(BackEvent ev)
 {
     SetState(State.Pause);
 }
コード例 #4
0
 protected override void HandleBackEvent(BackEvent ev)
 {
     _ReturnButtonClick();
 }
コード例 #5
0
 protected virtual void HandleBackEvent(BackEvent ev)
 {
     ReturnToPrevious();
 }
コード例 #6
0
 private void btnBack_Click(object sender, RoutedEventArgs e)
 {
     BackEvent?.Invoke(this, new EventArgs());
 }
コード例 #7
0
 protected override void HandleBackEvent(BackEvent ev)
 {
     _MenuButtonClick();
 }