A* pathfinder - next target

I'am using Arons A* pathfinding.

I want a character to move from one point to another. I'am just starting with unity and these are my first scripts.

The script doesn't give any errors, but it doesn't work.

What is wrong?

var target : Transform[];
var timer : float = 0.0;
var Rate : float = 1.0;
private var currentTarget: int;

function FixedUpdate () {
timer += Time.deltaTime;
    if(timer > Rate){
    this.GetComponent("Seeker").StartPath(transform.position,target[currentTarget].position);
    timer = 0;
    }
    if(Vector3.Distance(transform.position,target[currentTarget].position)<=0){
        currentTarget++;
        if(currentTarget>=target.Length){ 
        currentttarget = 0;
        }
    }
}

currentttarget = 0; <---- You have 3 lower case "T"s here

currentTarget = 0; <--- should look like this

The answer:

Rather than check the remaining distance is <=0, maybe try <=.1 The distance returned is probably not negative, and might never really equal 0, so just check if its close.