// Use this for initialization void Start() { startNodes = new List <int>(); lookaheadDummy = new Vector3(); movement = GetComponent <AIMovement>(); corridor = new List <Node>(); fullCorridor = new List <Node>(); movement.Reposition(); nextPosition = transform.position; }
virtual public void Reset() { FileHandler.self.WriteString("\nreset\n"); FileHandler.self.WriteString("distance travelled: " + movement.distanceTraveled + "\n"); movement.Reposition(); corridorDone = false; nextPosition = transform.position; nextNode = null; lookaheadNode = null; corridor.Clear(); OnResetAI(); }