private void DrawPointGizmos() { if (fan.Length <= 0f) { return; } var col = color; if (pointObj != null && fan.ContainPoint(pointObj.point)) { col = Color.red; } else if (rectObj != null && fan.IntersectWith(rectObj.rect)) { col = Color.red; } else if (circleObj != null && fan.IntersectWith(circleObj.circle)) { col = Color.red; } GizmosUtil.DrawFan(fan, col, mesh); }