﻿using UnityEngine;
using System.Collections;

/**
 * @author Adrien D
 * @version 1.0
 */

 /**
  * The Loading Controller
  * It is the entry point of the game to initialize the Game Model
  */
public class LoadingController : MonoBehaviour {

	void Awake() {
		Cursor.visible = false;
	}

	//Fix Unity crash bug if loadlevel on pre-frame
	IEnumerator Start()
	{
		Cursor.visible = false;

		yield return null;
		GameModel.Init ();
		EnnemyConfigurator.Init();
		HeroConfigurator.Init();
		Application.LoadLevel("Main_menu");

		
	}
}

