When complete level change colour of ball.

Hi I have a problem I want to make a game when you Entertrigger that the next time the ball has another colour?

EnterTrigger script:

function OnTriggerEnter(other : Collider)
{

        PlayerPrefs.SetInt("newcolor", 1);
        Debug.Log("newcolor = ball-special");
       
        
        
		yield WaitForSeconds(2.0); 
        Application.LoadLevel("menu");
    }

and the change colour for the ball script:

var newcolorball : Material;
var newcolor : int = 0;
var levelReached1 : int = 0;

function Start () {

}

function Update () {

newcolor = PlayerPrefs.GetInt(“newcolor”);

if(newcolor){

find.gameObjectwithTag(“ball”);{

renderer.material.newcolorball;
}

}

}

Try this:

function Start()
    {
            if (PlayerPrefs.GetInt("newcolor") == 1)
            {
                    //Change colour here
            }
    }
function OnTriggerEnter(other : Collider) {

        PlayerPrefs.SetInt("newcolor", 1);
        PlayerPrefs.Save();
}