<human>: Can you provide a brief overview of the text?

So myself and this guy are college friends. We've done some flirting and sexting before, like a year ago, but never actually physically did anything. Last week his girlfriend of 6 months broke up with him because he has depression and she couldn't handle the strain on their relationship. Yesterday we were talking about it and he seemed fine about it - he said he was over it. I thought it was a bit odd since they'd only been broken up a week, but I accepted it.

A couple of hours later, we were fooling around. (We have previously agreed that our attraction towards each other is not emotion-based but purely physical, and that's how we've always been with each other.) However, after he left, he sent me a message saying he was in a confused state from the break-up and he was upset with himself for downplaying the break-up, but also he was upset with me because I should have known it wasn't okay to do stuff with him.

I have apologised for making him uncomfortable, but I can't work out whether or how much I am in the wrong here. Should I have worked out that he wasn't ready or should he have made it more clear? He seemed into it while it was going on and it was only afterwards as he was leaving that he suggested it would be a one-time thing. In his written message to me he was adamant that it would not be happening again. I'm fine with that, but I'm a bit defensive as to him blaming me for what happened. It seems to me like if he really wasn't ready, he ought to have made it clear and of course I wouldn't have pushed it.

He says we can still be friends. But I would just like an objective opinion - should I have gauged that he wasn't ready or should he have made it clear before anything happened?
<bot>: I fooled around with a friend who had recently been dumped and he blames me for not realising he wasn't ready, even though he didn't tell me or stop what was happening.