Rooney happy to quit playing if manager