Need some help with scene transitioning in C#

So, I know that everybody that know C# are gonna get horrified by my code but I don’t quite know how to make this function work.

public class ToMainMenu : MonoBehaviour {

void Update () {

	if (AnimationState = PlayMode){

		WaitForSeconds (5) 
		(Application.LoadLevel ());

	}

}

}

You need to write level’s name or number in build settings inside LoadLevel as parameter.

Like this: Application.LoadLevel("HighScore");