public TouchEvent(TouchInput.TouchStatus status, int touchId, Vector2 pressedPosition, Vector2 releasedPosition, float heldTime) { Status = status; TouchId = touchId; PressedPosition = pressedPosition; ReleasedPosition = releasedPosition; HeldTime = heldTime; }
void Update() { if (Input.touchCount > 0) { preTouchStatus = touchInput.touchStatus; touchPosition = touchInput.CaptureTouch(Input.GetTouch(0)); if (preTouchStatus != touchInput.touchStatus && !inputLocked) { StartCoroutine(TouchEventUpdate()); } } }