Skip to content

Commit

Permalink
fix touch
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-yangy committed Oct 14, 2024
1 parent df8f58b commit 4d357d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Runner/Scripts/InputManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ private void Update()
m_HasInput = false;
}
#else
if (Touch.activeTouches.Count > 0)
if (UnityEngine.InputSystem.EnhancedTouch.Touch.activeTouches.Count > 0)
{
m_InputPosition = Touch.activeTouches[0].screenPosition;
m_InputPosition = UnityEngine.InputSystem.EnhancedTouch.Touch.activeTouches[0].screenPosition;

if (!m_HasInput)
{
Expand Down

0 comments on commit 4d357d0

Please sign in to comment.