How do I access a variable from another GameObject?

I have to objects: the coin, and the player. They each have a script attached to them. The player has a variable called “score”. When you click the coin, I want it to add 1 to the score. However, the click function is in the coin script, and the score variable is in the player script. How can I add 1 to the score variable from the coin script?

//Put this on your character.
//Make a tag called “Coin” and put it on your coin
static var Coin = 0;

function OnTriggerEnter(other : Collider) {
    if(other.tag == "Coin") {
        Coin += 1;
        Destroy(other.gameObject);
    }
}

This is what static variables are for, but you really don’t need it in this case. Like the other guy said, try looking this up before going to the forums.