Vetor3 "Z"

Good afternoon,

Could you please help me with an information?

I did not understand the purpose of this code in this context.

““float distance = transform.position.z – Camera.main.transform.position.z;””

Please, could you tell me what he does for certain and what is the importance in a 2D game?

Thank you very much.

Jefferson N.

None, but it was mentioned in lesson by lector that it’s there to help us to gain right habits.