Rory McIlroy has acknowledged that he needs to develop a better attitude in the face of adversity if he is to make his way out of his current troubles