File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Assets/JCSUnity/Scripts/Interactive Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ protected virtual void FixedUpdate()
189
189
// to here...
190
190
mWheelDegree = Input . GetAxis ( "Mouse ScrollWheel" ) ;
191
191
#elif ( UNITY_ANDROID || UNITY_IPHIONE || UNITY_IOS )
192
- var slideInput = JCS_TouchInput . instance ;
192
+ var slideInput = JCS_TouchInput . FirstInstance ( ) ;
193
193
mWheelDegree = slideInput . TouchDistanceDelta ;
194
194
#endif
195
195
ZoomCamera ( mWheelDegree ) ;
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ protected override void LateUpdate()
226
226
// to here...
227
227
mWheelDegree = Input . GetAxis ( "Mouse ScrollWheel" ) ;
228
228
#elif ( UNITY_ANDROID || UNITY_IPHIONE || UNITY_IOS )
229
- var slideInput = JCS_TouchInput . instance ;
229
+ var slideInput = JCS_TouchInput . FirstInstance ( ) ;
230
230
mWheelDegree = slideInput . TouchDistanceDelta ;
231
231
#endif
232
232
ZoomCamera ( mWheelDegree ) ;
You can’t perform that action at this time.
0 commit comments