Skip to content

Commit 671e6ea

Browse files
author
RUBIUS\chebanovdd
committed
Removed ScreenPosition property.
1 parent 6db69d8 commit 671e6ea

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Assets/Scripts/Common/CanvasInputSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ private void OnPointerUp(PointerEventData e)
4848

4949
private PointerEventArgs GetPointerEventArgs(PointerEventData e)
5050
{
51-
return new PointerEventArgs(e.button, e.position, GetWorldPosition(e.position));
51+
return new PointerEventArgs(e.button, GetWorldPosition(e.position));
5252
}
5353

5454
private Vector2 GetWorldPosition(Vector2 screenPosition)

Assets/Scripts/Common/Models/PointerEventArgs.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@ namespace Common.Models
55
{
66
public class PointerEventArgs : System.EventArgs
77
{
8-
public PointerEventArgs(PointerEventData.InputButton button, Vector2 screenPosition, Vector3 worldPosition)
8+
public PointerEventArgs(PointerEventData.InputButton button, Vector3 worldPosition)
99
{
1010
Button = button;
1111
WorldPosition = worldPosition;
12-
ScreenPosition = screenPosition;
1312
}
1413

1514
public Vector3 WorldPosition { get; }
16-
public Vector2 ScreenPosition { get; }
1715
public PointerEventData.InputButton Button { get; }
1816
}
1917
}

0 commit comments

Comments
 (0)