void Update() { if (surveyorInRange) { if (surveyorInSight) { movement.Charge(); PlayAggroSound(); } else { if (SurveyorOnRight) { movement.TurnRight(); } else { movement.TurnLeft(); } } } else { Navigate(); } movement.MoveForward(); }
void Update() { if (MoveLeft) { movement.TurnLeft(); } else { movement.TurnRight(); } movement.MoveForward(); }