Both need Mode S to co-ordinate an RA , ie one aircraft fly up, the other fly down.
The Mode S equipped aircraft will still issue an RA if it encounters a Mode C equipped aircraft in it's path though, it just won't communicate with the Mode C to co-ordinate the RA.