public void ChangeState(AI_STATES newState)
    {
        //Note the time I entered the state
        stateStartTime = Time.time;
        currentState   = newState;

        //Reset the avoidance state
        currentAvoidState = AI_AVOID_STATES.None;
    }
 public void ChangeAvoidState(AI_AVOID_STATES newState)
 {
     startAvoidTime    = Time.time;
     currentAvoidState = newState;
 }