I think I’m crazy…everything seems ok.Please chacke this out:
I have created a simple script that plus 10 to a scroe when something colide to the object.That’s the code:
var score:int;
function OnCollisionEnter () {
score+=10;
}
function Update()
{
Debug.Log(score);
}
But when it colides nothing happens:(
The object I’ve tried to test this code is a cube with a box collider.Where is the problem?