Drillerdroid is a later boss in Sonic Mania. It targets Sonic and Tails but his crosshairs are easy to dodge. But when it crashes down, cave spikes fall and they're difficult to dodge.
That being said, it's easy to hold on to your rings. So Drillerdroid becomes obsolete soon.