Skip to content

Commit 9910e1b

Browse files
doerrdudeabhishektrip
authored andcommitted
removed error messages from manual touch script (#667)
1 parent ae817a6 commit 9910e1b

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

sdkproject/Assets/MapboxAR/Scripts/Camera/ManualTouchCamera.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,21 @@ public class ManualTouchCamera : MonoBehaviour
1616
[SerializeField]
1717
Transform _mapHolder;
1818

19-
float speed = 1f;
20-
2119
Vector2?[] _oldTouchPositions = { null, null };
2220

2321
Vector2 _oldTouchVector;
2422
Vector3 _delta;
2523
float _oldTouchDistance;
26-
Vector3 _origin;
2724

2825
bool _wasTouching;
2926

30-
bool _shouldDrag;
31-
3227
void Update()
3328
{
3429

3530
if (Input.touchCount == 0)
3631
{
3732
_oldTouchPositions[0] = null;
3833
_oldTouchPositions[1] = null;
39-
_shouldDrag = false;
4034

4135
}
4236
else if (Input.touchCount == 1)
@@ -47,11 +41,6 @@ void Update()
4741
_oldTouchPositions[1] = null;
4842
}
4943

50-
if (Input.GetTouch(0).phase == TouchPhase.Began)
51-
{
52-
_origin = Input.GetTouch(0).position;
53-
}
54-
5544
if (Input.GetTouch(0).phase == TouchPhase.Moved)
5645
{
5746
var touchDelta = Input.GetTouch(0).deltaPosition;

0 commit comments

Comments
 (0)