Skip to content

Commit 4a7582c

Browse files
committed
fix: compilation error on mobile phone
1 parent 5ce8e05 commit 4a7582c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Assets/JCSUnity/Scripts/Interactive/2D/Camera/JCS_2DCamera.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ protected virtual void FixedUpdate()
189189
// to here...
190190
mWheelDegree = Input.GetAxis("Mouse ScrollWheel");
191191
#elif (UNITY_ANDROID || UNITY_IPHIONE || UNITY_IOS)
192-
var slideInput = JCS_TouchInput.FirstInstance();
193-
mWheelDegree = slideInput.TouchDistanceDelta;
192+
var input = JCS_TouchInput.FirstInstance();
193+
mWheelDegree = input.touchDistanceDelta;
194194
#endif
195195
ZoomCamera(mWheelDegree);
196196
}

Assets/JCSUnity/Scripts/Interactive/3D/JCS_3DCamera.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ protected override void LateUpdate()
226226
// to here...
227227
mWheelDegree = Input.GetAxis("Mouse ScrollWheel");
228228
#elif (UNITY_ANDROID || UNITY_IPHIONE || UNITY_IOS)
229-
var slideInput = JCS_TouchInput.FirstInstance();
230-
mWheelDegree = slideInput.TouchDistanceDelta;
229+
var input = JCS_TouchInput.FirstInstance();
230+
mWheelDegree = input.touchDistanceDelta;
231231
#endif
232232
ZoomCamera(mWheelDegree);
233233
}

0 commit comments

Comments
 (0)