Beispiel #1
0
    private void OnTryInteract()
    {
        if (raycastInteraction.CurrentInteraction != raycastInteraction.LastInteraction)
        {
            raycastInteraction.LastInteraction?.StopInteraction();

            StartInteraction?.Invoke(raycastInteraction.CurrentInteraction);

            raycastInteraction.CurrentInteraction?.StartInteraction();
        }
        else
        {
            raycastInteraction.CurrentInteraction?.StopInteraction();
        }
    }
Beispiel #2
0
 void IGraphicsView.StartInteraction(PointF[] points) => StartInteraction?.Invoke(this, new TouchEventArgs(points, true));