Exemplo n.º 1
0
    private IEnumerator findPath()
    {
        //Debug.Log("asking for new path");
        path.createPath(transform.position, target.transform.position);
        pathList = path.nodePath;
        yield return(new WaitForSeconds(pathTimer));

        StartCoroutine(findPath());
    }