I've been going around for a few days with a topic about local variables and the Unity update function, (I mean before I'm new to Unity and C#).
As I understand the local variables are usually faster than declaring them global (I do not mess up).
Taking this example code I saw in a question, and applying my question:
void Update () {
..//
Vector3 to = new Vector3 (0, 0, -85);
My question is in C#, local variables comply with what is faster than global?
And the other doubt, it is from the point of view of preform, how efficient it is to create variables in the update Vector3 to
versus make them global.
I hope you understand my question. I am sorry for my bad english.