2026-04-25 18:20:16 +07:00
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UIElements;
|
|
|
|
|
|
|
|
|
|
namespace UI
|
|
|
|
|
{
|
|
|
|
|
public class ProfileController : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
private void OnEnable()
|
|
|
|
|
{
|
|
|
|
|
var root = GetComponent<UIDocument>().rootVisualElement;
|
2026-04-26 04:39:59 +07:00
|
|
|
root.Q<Button>("btn-close")?.RegisterCallback<ClickEvent>(ev => UIManager.Instance.GoBack());
|
2026-04-25 18:20:16 +07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|