예제 #1
0
 // Use this for initialization
 void Start()
 {
     initMaze();
     hk = new HuntAndKill(mazeCells);
     hk.run(length, width, render);
     render = true;
 }
예제 #2
0
 // 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;
     }
 }