private void SelectItem(Vector2 aimVector) { // Don't do anything on release; aim vector will be (0, 0) if (aimVector.sqrMagnitude < Mathf.Epsilon) { return; } // Calculate angle (flip if aim vector points to the right) int selectIndex = GetIndex(AngleFromAim(aimVector)); // Select that item m_Inventory.SelectItemAtIndex(selectIndex); // Highlight the corresponding wedge m_UI.SelectItem(); }