// Use this for initialization void Start() { initMaze(); hk = new HuntAndKill(mazeCells); hk.run(length, width, render); render = true; }
// Update is called once per frame void Update() { Debug.Log(timeLeft); if (timeLeft < 0) { render = false; } if (render) { timeLeft -= Time.deltaTime; } else { hk.clear(); initMaze(); hk = new HuntAndKill(mazeCells); hk.run(length, width, render); render = true; timeLeft = 10; } }