using UnityEngine; using UnityEngine.UIElements; // Make sure you have this using directive using UnityEngine.SceneManagement; // Added for scene management using System.Collections.Generic; // Needed for List<> using System.Linq; // Needed for LINQ operations using System.Collections; // Needed for coroutines public class MainTeamSelectScript : MonoBehaviour { private UIDocument uiDocument; private TeamCharacter currentCharacter; private List