public void OnPathComplete(Path p) { Debug.Log("We got a path. Did it have an error? " + p.error); if (!p.error) { path = p; currentWaypoint = 0; enemyAnimation.PlayWalk(false); } }