using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UIElements; public class WinSceneController : MonoBehaviour { private UIDocument uiDocument; private Button button; // Start is called once before the first execution of Update after the MonoBehaviour is created private void OnEnable() { uiDocument ??= GetComponent(); if (uiDocument == null) { return; } var root = uiDocument.rootVisualElement; if (root == null) { return; } button = root.Q