public AStarNavMeshNavigation(NavMeshHolder navMesh)
 {
     this.navMesh = navMesh;
     this.navMesh.AddListener(UpdateVertexes);
     UpdateVertexes();
 }
 private void OnEnable()
 {
     navMesh   = (NavMeshHolder)target;
     triangles = serializedObject.FindProperty("triangles");
 }