Basically, after my player kills the boss of the game (which is just a spherical object with no AI) I want there to be a game over trigger. How would I set about doing this?
Well that depends… it really depends on what goes into killing ‘the boss’.
Like my team usually has a ‘HealthMeter’ script attached to anything killable. When it is struck, we decrement the health by some amount, and fire an ‘IStruck’ message that it occurred (which includes a parameter for if it died).
I would then have another script listen for said message, and do what is necessary for ending the game on death.
Note though… usually you might want to do a series of things. Like play an animation of the boss dying, and sound fx, and other stuff… THEN show the game over. So you’d probably want to wait until that is all over first. But again, that hinges on how you do all that as well.