Man in critical condition after being hit by car