I’ve only begun scratching at the edges of inheritance and am trying to make the most of it within Unity.
I’m working on a textual event-driven game, and presently have each event in its own descriptively-named script (e.g. “TheEmpireFalls”). Each of these event scripts inherits from a BaseEvent class, and only specifies values for the parent’s variables, so their contents are largely consistent from one to the next.
I’d like now to organize these event scripts into an array visible in the inspector. Is there any way to declare this array so that it will recognize the common inherited type of these differently-named scripts and allow them to be handled as such?