Evolutionary Responses to Environmental Changes: How Does Competition Affect Adaptation?