Hi,
I am trying to find a way to find the distance between to points ONLY ON THE X AXIS. By this I mean say my transform.position.x was 5 and my player.transform.position.x was 10, I would receive a result of five. If anybody knows how to do this it would be much appreciated if you could let me know how.