Skip to content

Commit f74f63f

Browse files
committed
fix: Mobile build with compat with secure instance pattern
1 parent 92df181 commit f74f63f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ 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.instance;
192+
var slideInput = JCS_TouchInput.FirstInstance();
193193
mWheelDegree = slideInput.TouchDistanceDelta;
194194
#endif
195195
ZoomCamera(mWheelDegree);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ 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.instance;
229+
var slideInput = JCS_TouchInput.FirstInstance();
230230
mWheelDegree = slideInput.TouchDistanceDelta;
231231
#endif
232232
ZoomCamera(mWheelDegree);

0 commit comments

Comments
 (0)