this is my, at this moment in time, most recent project. This is a recreation of the Dustman boss fight from megaman 4, made in Unity.
What Dustman does in the bossfight is randomly cycle between 3 attacks: jumping around, trying to suck you in, and shooting at you. I recreated this bossfight by giving him a state machine with 4 total states, Idle, Jumping, Shooting, and Sucking. The only thing I changed from the original fight is that Dustman now always does the suck attack after jumping, This seemed like a more logical choice, since he is now closer to the player after jumping to suck him in.