My crush has mood swings?

ive had a crush on this guy for almost a year now and he's not the same as he used to be. he told my friend he's going through some kind of depression and sometimes he's rude to me for no reason. And then when I'm not really paying attention to him he tries to talk to me and he pokes me and what not. I don't know what's going on, should I give up on him?
Updates
+1 y
p.s I'm actually only fifteen but I had to put down a different birthday.
My crush has mood swings?
Post Opinion