Hello ! I’m creating a JS script in order to display the amount of credit on UI Text, but it say
“An instance of type
‘UnityEngine.Object’ is required to
access non static member ‘ToString’.”
private var money : argent;
public var texte : UI.Text;
function Start () {
money = GameObject.Find("_manager").GetComponent(argent);
}
function Update () {
texte.text= "C :" + argent.ToString();
}
Thx for your help !!!