public void Update() { if (swiping) { Vector2 diff = (Vector2)selected.transform.position - (Vector2)InputHandler.Instance.inputVectorWorld; iconController.SetTarget(Mathf.Clamp(diff.x / 8.7f, -1, 1)); } else { iconController.SetInvisible(); } if (swiping && InputHandler.Instance.inputSignalUp) { UpAction(); } }