private void GoalHasBeenFound(object sender, EventArgs e) {
Utils.wr ("Found Target");
if (this.robotKyle != null) {
Utils.wr ("Let's start Robot Kyle, place him at the start.");
this.objStartCube.SetActive (false);
this.robotKyle.transform.position = this.objStartCube.transform.position;
}
}
void Update() {
this.elapsedTime += Time.deltaTime;
if (elapsedTime >= this.intervalTime) {
this.elapsedTime = 0.0f;
if (!this.FindPathInSteps ()) {
this.FindPath ();
} else {
if(AStarAgentStatic.HasFoundGoal()) {
this.FindPathInStepsPrep ();
}else {
this.FindPathInStepsIterate ();
}
}
}
}