public override void AgentReset()
 {
     // Destroy all walls
     if (mazeCells != null && mazeCells.Length > 0)
     {
         PcgHKMG.DestroyMaze(mazeCells);
     }
     // Clear parameters
     startTime = DateTime.UtcNow;
     RequestDecision();
 }
Example #2
0
 public void AgentReset()
 {
     // Destroy all walls
     if (mazeCells != null && mazeCells.Length > 0)
     {
         PcgHKMG.DestroyMaze(mazeCells);
     }
     // Clear parameters
     startGenerating = DateTime.UtcNow;
     GenerateMaze();
 }