using UnityEngine;
using System.Collections;

public class Loader : MonoBehaviour
{
		public string lvl;
		void Start ()
		{
				StartCoroutine (WaitForRestart ());
		}
		IEnumerator WaitForRestart ()
		{
				yield return new WaitForSeconds (5);
				Application.LoadLevel (lvl);
		
		} 
}