using System.Collections; using System.Collections.Generic; using System.Linq; using System.Threading; using BITKit; using BITKit.Entities; using BITKit.UX; using Cysharp.Threading.Tasks; using Net.Project.B.UX; using Project.B.Map; using UnityEngine; using UnityEngine.UIElements; namespace Net.Like.Xue.Tokyo.UX { public class UXLevel : UIToolKitPanel, IUXMapSelector { private readonly IGameMapService _gameMapService; private readonly IEntitiesService _entitiesService; public UXLevel(IUXService uxService, IGameMapService gameMapService, IEntitiesService entitiesService) : base(uxService) { _gameMapService = gameMapService; _entitiesService = entitiesService; } public override async UniTask EntryAsync() { await base.EntryAsync(); _levelContainer.Clear(); foreach (var gameMapData in _entitiesService.QueryComponents()) { var button = _levelContainer.Create