Have one line completely load then the other

Totally new to Csharp.

This is my code.

public GameObject loadingImage;

public void LoadScene(int level)
{
    loadingImage.SetActive(true);
    Application.LoadLevel(level);
}   

So what i want to ensure is that loadingImage.SetActive(true); loads completely before it tries to load Application.LoadLevel(level); … it seems right now in the build that its trying to load both at the same time… and there is a moment of nothingness and finally loadingImage.SetActive(true); flickers than jumps into Application.LoadLevel(level);

Any help would be great! :slight_smile:

public void LoadScene(int level)
{
StartCoroutine( LoadSceneCoroutine(level) );
}

	IEnumerator LoadSceneCoroutine(int level)
	{
		loadingImage.SetActive(true);
		yield return new WaitForSeconds(3f); // wait a few seconds before actually loading
		Application.LoadLevel(level);
	}