File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
sdkproject/Assets/MapboxAR/Scripts/Camera Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -16,27 +16,21 @@ public class ManualTouchCamera : MonoBehaviour
16
16
[ SerializeField ]
17
17
Transform _mapHolder ;
18
18
19
- float speed = 1f ;
20
-
21
19
Vector2 ? [ ] _oldTouchPositions = { null , null } ;
22
20
23
21
Vector2 _oldTouchVector ;
24
22
Vector3 _delta ;
25
23
float _oldTouchDistance ;
26
- Vector3 _origin ;
27
24
28
25
bool _wasTouching ;
29
26
30
- bool _shouldDrag ;
31
-
32
27
void Update ( )
33
28
{
34
29
35
30
if ( Input . touchCount == 0 )
36
31
{
37
32
_oldTouchPositions [ 0 ] = null ;
38
33
_oldTouchPositions [ 1 ] = null ;
39
- _shouldDrag = false ;
40
34
41
35
}
42
36
else if ( Input . touchCount == 1 )
@@ -47,11 +41,6 @@ void Update()
47
41
_oldTouchPositions [ 1 ] = null ;
48
42
}
49
43
50
- if ( Input . GetTouch ( 0 ) . phase == TouchPhase . Began )
51
- {
52
- _origin = Input . GetTouch ( 0 ) . position ;
53
- }
54
-
55
44
if ( Input . GetTouch ( 0 ) . phase == TouchPhase . Moved )
56
45
{
57
46
var touchDelta = Input . GetTouch ( 0 ) . deltaPosition ;
You can’t perform that action at this time.
0 commit comments