I experienced this recently in the workplace I was working in where I had/have crush on someone, because of the professional setting. For me I experienced anxiety when I dealt with the said person, but depression was the main theme because I knew nothing could happen, although I was not actively looking for anything, and it was sometimes difficult to do the job because of that feeling.