Jack Layne threw three touchdown passes, D.J. McKinney scored the winning touchdown with 3 minutes to go, and New Mexico defeated UNLV 40-35 on Saturday.