using UnityEngine; using UnityEngine.UIElements; namespace UI { public class LobbyController : MonoBehaviour { private VisualElement _joinView; private VisualElement _createView; private float _lastInteractionTime; private bool _isCreateMode = false; private const float AutoReturnDelay = 5f; private void OnEnable() { var root = GetComponent().rootVisualElement; _joinView = root.Q("join-view"); _createView = root.Q("create-view"); // Back button root.Q