I wrote a script for distance of car and I don`t know how to make distance like this Distance: 156Km. I wrote this code:
distanceText.text = ((int)distance).ToString() + "Km";
It works only from 1 to 9; when it goes to 10 Km, it disappears but if I write it like this:
distanceText.text = ((int)distance).ToString() + " Km";
It show like this: from 1 to 9 -> "5 Km" and from 10 to 99 -> "99Km" but when it goes to 100 Km and above, it disappears. What code should I write for this to show always Km after the distance.
And I have one more question. I have a gameover canvas and I'd like in gameover canvas to show the final distance I make with PlayerPrefs but it doesn't work.
Here it shows how it does not work: