Event Flags e.g "Hey, something spawned!"

Hey there,

I’m trying to find a way to get Unity to raise a flag if something spawned.

For example, a global flag that any script can read to see if something has just spawned.

Does Unity have a system like this in place? If not, does anybody know how I would go about writing something like this?

MonoBehaviour.OnEnable might be useful here. OnEnable is called when the object becomes enabled and active.