Gauge fields on $B$-branes over $\mathbb{CP}^n$