Here is the code that works in the Editor, but when I build and install the apk on my S4, it doesn’t work.
distanceTraveled = (int) Mathf.Abs(transform.localPosition.x);
label.text = distanceTraveled.ToString();
Here is the code that works in the Editor, but when I build and install the apk on my S4, it doesn’t work.
distanceTraveled = (int) Mathf.Abs(transform.localPosition.x);
label.text = distanceTraveled.ToString();
try making it some static string(i.e label.text = “BLAH TEST”;
just to see what is going on