using UnityEngine; using UnityEngine.UIElements; namespace UI { public class LobbyController : MonoBehaviour { private UIDocument _doc; private Button _btnLeave; private Button _btnStart; private ScrollView _playerList; private void OnEnable() { _doc = GetComponent(); var root = _doc.rootVisualElement; // BINDING: Tìm element theo tên (Name) đã đặt trong UXML _btnLeave = root.Q