What should I do?

My boyfriend of three years and I just recently broke up. He dumped me because I later found out his depression made him feel like and think that he was bad for me and he was also a little afraid of going to college and our relationship ending because of how close we've become. Prior to the break up I was very happy my biggest problem was I didn't get to talk to him as much because he was busy which wasn't a big deal. More than anything I feel like he's my best friend and he can always make me smile and I have some of my best memories with him. However his depression has been troublesome to our relationship but he always talked to me and we worked things out. The sudden break up really left me shocked and heartbroken and he he wanted to get back together because he made a mistake. I told him I thought we should take a little more time because everything had hurt me so much. Now I don't know whether we should get back together because I really miss him but he's also acted so different and I wonder if staying apart would be better in terms of him going to college next year. My head and heart are just really conflicted does anyone have advice on what I should do?