void OnMouseUp() { Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition); if (Physics.Raycast(ray, out RaycastHit finalHit) && CheckCollider(initHit.collider, finalHit.collider)) { controller.DoRotation(initHit, finalHit); } }