using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.InputSystem; using UnityEngine.UIElements; namespace BITKit.UX { public class UXToolTips:IDisposable { private readonly IUXService _uxService; private readonly IMainTicker _ticker; public UXToolTips(IUXService uxService, IMainTicker ticker) { _uxService = uxService; _ticker = ticker; _ticker.Add(OnTick); } private VisualElement _rootVisualElement; private Label _label; public void Dispose() { _ticker.Remove(OnTick); } private void OnTick(float obj) { if (_label is null && _uxService.Root is not null) { _rootVisualElement=_uxService.Root as VisualElement; _label = _rootVisualElement.Create