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

public class LoseGame : MonoBehaviour {
	bool failure = false;
	public int counter;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		//When you let more then 1- enemies pass it will load the gameoverscreen and reset its values so it van start all over again.
		if(counter > 10)
		{
			Debug.Log ("ḧet werkt " + EnemyBehavorialManager.loseCounter);
			SceneManager.LoadScene (3);
			failure = true;

			EnemyBehavorialManager.loseCounter = 0;
		}
	
	}
}
