private void OnDrawGizmos() { if (_path != null) { foreach (var w in _waypoints) { Gizmos.DrawCube(w, Vector3.one); } _path.DrawWithGizmos(); } }