using UnityEngine;
using System.Collections;
public class *NAMEOFSCRIPT* : MonoBehaviour {
public string horSpeed;
public PlayerMovement pm;
void Start () {
horSpeed = pm.horAcceleration.ToString();
}
void OnGUI(){
GUI.Box (new Rect (Screen.width - 100, Screen.height - 50, 100, 50), horSpeed);
}
}
this is c# but try it,
attach the right script (if needed),
change *NAMEOFSCRIPT* to the name of the c# script
Trending Articles
More Pages to Explore .....