using Sirenix.OdinInspector; using UnityEngine; using UnityEngine.UIElements; public class LockOnManager : MonoBehaviour{ [ShowInInspector] public UIDocument lockOnDocument; public GameObject lockOnTarget; private Label elementLabelName; private VisualElement elementRoot; // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { if (lockOnTarget.GetComponent() == null) { Debug.LogError($"Game Object {lockOnTarget.name} does not implement the ILockOnTarget interface. Not processing lock-on actions!"); } elementRoot = lockOnDocument.rootVisualElement.Query("LockOnGroup"); elementLabelName = lockOnDocument.rootVisualElement.Query