I’m new in coding at all. My question is about challenge “Move the player to the right”, + x offset. I just added + 1f to x value
transform.localPosition = new Vector3
(transform.localPosition.x + 1f,
transform.localPosition.y,
transform.localPosition.z);
and its working the same
float xOffset = 1f;
float newXPos = transform.localPosition.x + xOffset;
transform.localPosition = new Vector3
(newXPos,
transform.localPosition.y,
transform.localPosition.z);
what such clarifications brings? Is it related to “easy make changes to code”, when you don’t need to browse all code to find another similar values?