I'm currently working "with" Unity, mostly creating mods for a game that uses the Unity Engine. The "modloader" we use and I've worked on as well adds the mods to a GameObject. In order to do so, the mod needs to be derived from the class "MonoBehaviour". But I often forget to do so myself.
Is there a way to create an inheritance after compiling? For example with Reflection? Another thing I thought about was using Mono.Cecil and just setting the "BaseType" variable. Would that work?
I don't have any code, since it would require much work before that.
Thanks!