Gui Problem

Can Anyone Please Correct this,Am failing to Call Gui Function Here.
Thank you

var MaxHealth = 100;
    var CurHealth = 0;
    
    
    function Start () 
    {
        CurHealth = MaxHealth;
    
    
    }
    
    function Update () 
    {
       if(CurHealth <= 0.0)
    		override(OnGUI)
         
       
    }
    
    
    function AdjustHealth(Adj : float){
        CurHealth -= Adj;
    }
    
    function OnGUI () {
    
    	GUI.Box (Rect (10,10,100,90), "You Died ");
    
    
    	if (GUI.Button (Rect (20,40,80,20), "Try Again ")) {
    		Application.LoadLevel (1);
    	}
    	
    	}

That ‘override’ thing is just totally wrong. You need something like this:

Remove the Update function, it’s not nessecary.

In ‘OnGUI’, check health before displaying the button and words:

function OnGUI () {
    if(CurHealth <= 0.0)
    {
        GUI.Box (Rect (10,10,100,90), "You Died ");
        if (GUI.Button (Rect (20,40,80,20), "Try Again ")) {
           Application.LoadLevel (1);
        }
    }
}