private void ResetHoles(NavigationMesh navMesh, bool changesMade) { if (changesMade) { navMesh.ResetHoles(); } }