hi. I have Unity 4.6.1.I use UI->Text to display the text and get score from a txt file with this code:
public Text heighScoreTextObject;
score = System.IO.File.ReadAllText("scor.txt");
heighScoreTextObject.text = "Score : " + score.ToString();
Also used(see bellow)method but still doesnt work.
var instruction = gameObject.GetComponent<Text>();
Everything works fine on editor and windows exe, put on android it doesn’t show the “score” from file.For test purpose if I make an int/string var and write something there, it displays. With unity 4.5 works, but I want to make it work with 4.6 also
How to fix it? thanks