I mean; does it spend any significant amount of processing time when I look up the transform component of the object the script is on?
Ought I to declare;
xPos = transform.position.x;
yPos = transform.position.y;
zPos = transform.position.z;
at the start of any function where I will be using position information more than twice, and then use the variable xPos instead of writing out transform.position.x?
Or is this really the same thing except for the time it takes to type it out, and assigning variables is a waste for this purpose?