void Update() { float horizontal1 = Input.GetAxisRaw("Horizontal"); float vertical1 = Input.GetAxisRaw("Vertical"); float horizontal2 = Input.GetAxisRaw("Horizontal2"); float vertical2 = Input.GetAxisRaw("Vertical2"); if (Input.GetMouseButtonDown(0) && !mouseDown) { Deselect(); } if (scrollDelay > 0) { scrollDelay -= Time.deltaTime; } else { if (selected && !mouseDown) { if (UnityUtils.AnyInputUp()) { //scrollDelay = Parameters.scrollDelay; AddRotation(1); } else if (UnityUtils.AnyInputDown()) { //scrollDelay = Parameters.scrollDelay; AddRotation(-1); } else if (horizontal1 > 0 || horizontal2 > 0 || Input.GetButtonDown("Controller1Button5") || Input.GetButtonDown("Controller2Button5")) { SelectNextDragPoint(); } else if (horizontal1 < 0 || horizontal2 < 0 || Input.GetButtonDown("Controller1Button4") || Input.GetButtonDown("Controller2Button4")) { SelectPreviousDragPoint(); } } } }