Beginner script questions
Hi guys,
I'm wondering if these statements I conclude are true?
1) Unity (on it's own) will instance any script(component) on a gameObject when the gameObject is in the scene. Therefore, I don't need to instance certain classes. They are automatically instanced.
2) In order for a script to be 'dynamically used'. Meaning, we can apply this same script to two different gameObjects, with different variable values, we must make the variables public, and let Unity's inspector be used?
3) instead of the workflow in method#2, I can instance a gameObject, and THEN add a script to it, and THEN set the property values via code.
In regards to #2 and #3, what are the reasons one might pick one over the other? I'm guessing people only choose #3 when it makes sense to add a script based on logic, rather than pre-determining it.
Thanks! Dave