I have a LevelSystem Class that inherits from MonoBehaviour to use coroutines, which is a variable in the Stats class. At the moment, LevelSystem appears in the Stats inspector similar to a GameObject field, rather than showing the individual variables in LevelSystem.
Removing LevelSystem’s inheritance from MonoBehaviour would fix this:
However I would have to move the coroutine it contains to the Stats class- it’s something that I could do, but would mean making copies of this coroutine for every class with a LevelSystem variable, which isn’t particularly desirable. Is there a way to make the default inspector for LevelSystem (while it inherits from MonoBehaviour) appear in the Stats class inspector?