If you are looking for help, always post the newest code you are working with here. Make sure that the error message line number and the line number of the script match.
@Dantus
Yeah I proberly ment that. Im not so hardcore to Unity Programming.
If deleted the code and started on a fresh, and tried to make it so simple as possible and it was a succes.
The succes code look like this:
#pragma strict
static var Won : boolean = false;
function Start () {
}
function OnCollisionEnter2D(test : Collision2D) {
Debug.Log("Collided"); // Inform if something had collided with object
if(test.gameObject.tag == "Goal")
{
Debug.Log("!!!!!Winner!!!!!"); // Inform if the "Right" object had collided
}
}