One of the things I’m seeing at the code/tutorials is that we are dragging references to objects in the Inspector practically every time.
For example, I have a reference of a Unit in the Unit Selected Visual and I have to drag the Unit first to couple them. And that is what always make me have a lot of errors and problems with the code.
So my question is: There is some way to avoid that references, make them dynamic, take them on the code itself or something like that?
I normally take them in the Awake, but I don’t think that is a good code habit. I think, I don’t really know.