As already "sort of " described in this question http://answers.unity3d.com/questions/489039/exposing-reference-or-resourcesloads-best-practice.html (not answered) I am unsure about how to properly script for unity (using c# here).
My Problem is that I cannot combine proper inheritance with the need of extending the MonoBehaviourclass.
When for example having a unit in my game, I have the superclass unit and now want to make subclasses for the specific units.
This won’t work because the specific units derive from my Unit class and not from the MonoBehaviour class, therefore I can’t attach them to the GameObject neither in the editor nor by AddComponent.
The only way I found to work around that is to make the Unit class very very big and add all possible configuration for the specific units into that class and let it derive from MonoBehaviour. But this seems very messy and swollen to me. I want to have own classes for different units and derive from my own superclass.
Having similar data/structure-types would also make this approach very redundant as I would have to copy most of the functions/members into seperate classes instead of deriving from the same superclass.
This kinda destroys the sense of OOP for me.
I hope you guys can hint me into the right direction?
I really want to get started scripting, but I don’t know what approach to use.