/// <summary> /// 削除用マーカーの生成 /// </summary> private SUICircle InstantiateRemoveMarker(string markerName, Vector2 point) { SUICircle marker = InstantiateMarker(markerName, point); marker.SetColor(remove); marker.Visible(); marker.onPointerDown.AddListener(OnRemoveMarkerDown); return(marker); }
/// <summary> /// 中点調整用マーカーの生成 /// </summary> private SUICircle InstantiateMidpointMarker(string markerName, Vector2 p1, Vector2 p2) { Vector2 point = (p2 - p1) * 0.5f + p1; SUICircle marker = InstantiateMarker(markerName, point); marker.SetColor(midpoint); marker.Visible(); marker.onPointerDown.AddListener(OnMidpointMarkerDown); return(marker); }