Ok so here is my score counter script to put on a GUI Text
function OnGUI(){
guiText.text = "Score: "+CubeScript.Counter;
}
i want it so that when i collide with a cylinder it goes up by 10 so i have this script but it is not working
static var Counter : int = 0;
function OnCollisionEnter (myCollision : Collision)
{
if(myCollision.gameObject.name == ("Cylinder"))
{
Counter++;
}
}