unit – put the ButtonClick progress bar?

it's basically what I'm trying to do, then click the button then start the progress bar and finish ProgreeBar and then instantiate myobject.
progress = www.downloadProgress;
Debug.Log ("progreesss:" + progress);

                                if (progress == 1)
{

LoadScreen.SetActive (true);
newobj = (GameObject) Instantiate (SpawnPrefab, pos, Quaternion.identity);
}
other
{
LoadScreen.SetActive (false);
}