Hello,
Can you guys help me making a script that when i touch a object called “cube”, It destroys the cube and add 10 points to the gui text?
This is what I already put on the GUI text:
static var Counter : int = 0;
function Update ()
{
guiText.text = "Score: " + Counter;
}
Hope for your help guys i really need it!
Thanks!:o