I am trying to make a basic scoring system and it is adding strings not numbers. here are my script:
var score = 1; var GUIScore : GUIText;
function OnTriggerEnter( other : Collider ) { if (other.tag == "Coin") { GUIScore.text += score; Destroy(other.gameObject); } }
How do I make it add numbers instead of strings (It starts off at 0 and when I pick a coin up it displays 01 and then 011, etc.)