private void Press_Performed(InputAction.CallbackContext obj) { Ray r = Camera.main.ScreenPointToRay(CurrentPosition); RaycastHit hitInfo; if (Physics.Raycast(r, out hitInfo) && hitInfo.collider.tag == "Shuttle") { shuttle.OpenDoors(); } }