var tm : TextMesh = gameObject.GetComponent(Texto);
function Update () {
if(worldone.drawit == true)
{
tm.text = "WORLDONE";
}
}
This is the code i am working with, and the error points to "Texto". My 3DText GameObject is called Texto and i have linked both that and the script together. I have tried putting "var Texto:GameObject;" before var tm but this spits out another error. Any suggestions?
Thank you