void GetScrollInput() { if (Input.GetAxis("Mouse ScrollWheel") >= 0.1f) { if (targetIndex >= enemiesOnRange.Count - 1) { targetIndex = 0; } else { targetIndex++; } AssignCycledTargets(); characterMovement.AssignBestTargetToTarget(); } if (Input.GetAxis("Mouse ScrollWheel") <= -0.1f) { if (targetIndex <= 0) { targetIndex = enemiesOnRange.Count - 1; } else { targetIndex--; } AssignCycledTargets(); characterMovement.AssignBestTargetToTarget(); } }