How do I load next scene when the progress bar ends?

Hey so I made this progress bar and I would like it when its completed, it will automatically load the next scene. code:
using UnityEngine;
using UnityEngine.UI;
using System.Collections;

public class loadingbar : MonoBehaviour {

public Transform Loading;
private float currentAmount =0f;
[SerializeField] private float speed;

// Update is called once per frame
void Update () {
	Loading.GetComponent<Image> ().fillAmount = currentAmount / 100;
	if(currentAmount < 100){
     currentAmount += speed * Time.deltaTime;

	}else{

	}
	Loading.GetComponent<Image>().fillAmount = currentAmount/100;

}

}

just put the condition in update like this …

void Update()
{
if(Loading.GetComponent<Image> ().fillAmount == 0)
{
       Application.LoadLevel(1) ;
}
}

It’s just a matter of condition here. Just Load the next level inside your else condition.

One more thing. Call toGetComponent() is expensive when used inside Update(). So, instead, you should store it’s reference in a variable inside Awake() function and then use that variable.
I’ve included the code for it.

using UnityEngine;
using UnityEngine.UI; 
using System.Collections;
using UnityEngine.SceneManagement;

public class loadingbar : MonoBehaviour {

 public Transform Loading;
 private float currentAmount =0f;
 [SerializeField] private float speed;

 Image img;

 void Awake(){
        img = Loading.GetComponent<Image> ();
 }
 // Update is called once per frame
 void Update () {
     img.fillAmount = currentAmount / 100;
     if(currentAmount < 100){
      currentAmount += speed * Time.deltaTime;
     }
     else{
             SceneManager.LoadScene("YOUR_NEXT_LEVEL");
     }
     img.fillAmount = currentAmount/100;
 }
}

Accept if it helps