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.