wangguan
2020-11-17 2ff55a1d8446f27ebd22ce9dfbf15185f97a60c9
Assets/Scripts/Core/Input/InputController.cs
@@ -322,9 +322,10 @@
      void UpdateTouches()
      {
         touchPressedThisFrame = false;
         for (int i = 0; i < UnityInput.touchCount; ++i)
            //for (int i = 0; i < UnityInput.touchCount; ++i)
            if (UnityInput.touchCount > 0)
         {
            Touch touch = UnityInput.GetTouch(i);
                Touch touch = UnityInput.GetTouch(0);
            // Find existing touch, or create new one
            TouchInfo existingTouch = m_Touches.FirstOrDefault(t => t.touchId == touch.fingerId);