Courtenay (and Comox) is a challenge. There are a few good restaurants, but none I'd categorize as "great." For some reason the chefs seem to overly complicate their dishes with a lot of competing flavours.
That being said - Your best bet is probably Atlas.
https://www.yelp.ca/biz/atlas-cafe-courtenay
My favourite pub in Comox isn't terribly upscale, but the location has great views -
https://www.yelp.ca/biz/blackfin-pub-comox
Tofino is a different story. There are several fantastic places. Most of course lean heavily towards seafood.
https://www.yelp.ca/biz/ice-house-oyster-bar-tofino
https://www.yelp.ca/biz/sobo-restaurant-tofino
https://www.yelp.ca/biz/the-schooner-restaurant-tofino (if you want to take a break from seafood)
...and finally, the Tacofino truck is a must-visit Tofino institution -
https://www.yelp.ca/biz/tacofino-tofino