do UCs only count the recent grade?

<p>I got a C- at a university I attended for 2 years. I’m currently attending a CC trying to transfer to a UC. If I repeat the same class at my CC, do UCs only count the recent one?
(I know that C- will still show on my transcript) Or do they average the two?</p>