int to string for a HUD guitext

hi there, i am trying to make the HUD show me how many points i allready got while playing... my problem: i can't get my gui text to show me the content of the var -.-

thanks for your help!

here is my script:

var asl = punkte_Sammeln.PUNKTE;

function Update () {
    var ptt = ToString(asl);

    guiText.text = ptt;
}

Quite simple. In .Net/Mono every object have a built in function .ToString(). You can do this:

var asl = punkte_Sammeln.PUNKTE;

function Update () {
    var ptt = asl.ToString();
    // or what would work too:
    // var ptt = "" + asl;
    guiText.text = ptt;
}

Viel glueck ;)

thanks a lot for the fast answer!