using UnityEngine;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
[ExecuteInEditMode]
[AddComponentMenu("UOP1/Tools/Click to Place")]
public void EndTargeting()
{
IsTargeting = false;
Undo.RecordObject(transform, $"{gameObject.name} moved by ClickToPlaceHelper");
transform.position = _targetPosition;
}