Generic component reference
I have an object MetalBlock that has three components: BlockController, HealthController and a BlockDataHolder, that the single purpose is hold a Block scriptable object. The BlockController and HealthController have reference to the BlockDataHolder. I did it because i would keep my scriptable in a single location.
My problem is on the HealthController. I'll use it in another gameobject that will not be a 'block', and because of it I cannot have this reference to the BlockDataHolder.
How can I solve it? There are some error in my approach?
Your answer
Follow this Question
Related Questions
CustomEditor on Inspector, Text too big to be fully rendered 0 Answers
How to save a two-dimensional array, as part of the variable inspector? 0 Answers
editor script problem, looping 1 Answer
How to create a drop down menu in editor inspector 0 Answers
,Unity Custom Inspector CreateInspectorGUI redraw on change 1 Answer