public static void DrawGizmo(MagicaDirectionalWind scr, bool selected) { // メイン方向 Gizmos.color = GizmoUtility.ColorWind; var pos = scr.transform.position; var rot = scr.transform.rotation; GizmoUtility.DrawWireArrow(pos, rot, new Vector3(0.5f, 0.5f, 1.0f), true); // 実際の方向 Gizmos.color = Color.yellow; Gizmos.DrawLine(pos, pos + scr.CurrentDirection * 0.5f); }