Hi there! I faced with such problem: i've added function to my simple browser game for collect items and eart scores, from very simple example here on Unity Docs:
function OnCollisionEnter(collision : Collision) {
alert('test');
}
and I can't get even see my "test" alert. Instead of this i get error: "Syntax Error: missing ) after formal parameters" with point at " : " after " collision ". May you advice me smth helpful?
Also I tryed OnTriggerEnter, but result was the same.
↧