public void updateAI(GameObject sa)
    {
        AI_Controller ac = sa.GetComponent <AI_Controller>();
        makepath      mp = pf.GetComponent <makepath>();

        ac.fp = mp.arr;
        ac.gp = mp.ret_path;

        if (ac.currentsec != null)
        {
            cs = ac.currentsec;
        }

        ac.startsec   = cs;
        ac.currentsec = cs;
        ac.pr         = pr;
        ac.Start();
        ac.ac     = this.gameObject;
        ac.audsor = this.aud;
    }