Help with different medals for completing a level

Hi,

I’m pretty new to Unity and I need help with getting my script to award a player different medals based on how many points they scored in the level. The badges and the “Skill Cleared!” message are currently not appearing. What am I doing wrong?

Here is my script:

public class PlayerResults1 : MonoBehaviour {
public bool IsScoreEnough = false;

	void OnLevelWasLoaded(int level) {

		if (level == 8)

			if (Score.score < 1500) {

        		IsScoreEnough = false;
  				Lives.curLives--;
		} if (Score.score > 1500) {

        	IsScoreEnough = true;

	}

	 ResultText (IsScoreEnough);
}
	void ResultText(bool IsScoreEnough) {

		if (IsScoreEnough == false)

    {
        	guiText.text = "TRY AGAIN!";
  			guiText.material.color = Color.black;
    }

    else if (IsScoreEnough == true) 
		if (Score.score > 1500) {
      Application.LoadLevel("Bronze1");
   }
   else if (Score.score > 3000){
      Application.LoadLevel("Silver1");
   }
   else if (Score.score > 4500){
      Application.LoadLevel("Gold1");

    {
        	guiText.text = "SKILL CLEARED!";
 			 guiText.material.color = Color.black;
	}
}	

}
}

Any assistance is appreciated.

Thanks.

You really need to learn how to use indenting, this code is a complete mess for anyone to try and read, here is the proper intenting and formatting. And as people have said before, you can use if(bool) rather than if(bool == true) and the same goes for false, use if(!bool). Another little tip, one line if statments, if you only have one line, dont use {} just put the one code line below it.
For anyone who wants to look deeper into the code, I have cleaned it up a bit

void OnLevelWasLoaded(int level) 
{
    if (level == 8)
    {
         if (Score.score < 1500) 
         {
             IsScoreEnough = false;
             Lives.curLives--;
         }
         if (Score.score > 1500) 
            IsScoreEnough = true;
    }
    ResultText(IsScoreEnough);
}
void ResultText(bool IsScoreEnough)
{
    if (!IsScoreEnough)
    {
         guiText.text = "TRY AGAIN!";
         guiText.material.color = Color.black;
    }
    else if (IsScoreEnough) 
    {
        if (Score.score > 1500)     
            Application.LoadLevel("Bronze1");
    
        else if (Score.score > 3000)
            Application.LoadLevel("Silver1");

        else if (Score.score > 4500)
        {
            Application.LoadLevel("Gold1");
            guiText.text = "SKILL CLEARED!";
            guiText.material.color = Color.black;
        }
    }
}