protected virtual void OnPathChanged(List <Point> path) { if (path == null) { uiView.ShowMessage("Path has not been found."); uiView.ResetUiView(); return; } List <Vector2Int> unityPath = path.Select(p => ConvertToVector2Int(p)).ToList(); mapView.ChangeState(MapState.ShowResult); mapView.DrawPath(unityPath); }