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()
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 ) ;
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments