static void DrawGizmoFor(VoxelBuilder target, GizmoType gizmoType) { DrawGrid(target); DrawMap(target); //畫Ray Gizmos.color = ClickPointColor; var clickPointOnRay = target.GetClickPointOnRay(); Gizmos.DrawSphere(clickPointOnRay, DebugHitR); Gizmos.DrawLine(clickPointOnRay, clickPointOnRay - target.GetClickNormalDir() * 10); //畫HitPoint Gizmos.color = HitPointColor; Gizmos.DrawSphere(target.GetHitPoint(), DebugHitR); }