using Excel2Json; using Fort23.Core; using Fort23.UTool; namespace Fort23.Mono { [UIBinding(prefab = "LevelChoosePanel")] public partial class LevelChoosePanel : UIPanel { private void Init() { } protected override void AddEvent() { } protected override void DelEvent() { } public override void AddButtonEvent() { } public async void CustomInit() { WorldMapConfig worldMapConfig = ConfigComponent.Instance.Get(1); BigMapItem bigMapItem = new BigMapItem(); GameObjectPool gameObjectPool2 = await GObjectPool.Instance.FetchAsync(worldMapConfig.bigMapPrefabName + ".prefab"); bigMapItem.CustomInit(worldMapConfig.ID, gameObjectPool2); } public async static CTask OpenPanel() { LevelChoosePanel levelChoosePanel = await UIManager.Instance.LoadAndOpenPanel(null); levelChoosePanel.CustomInit(); } } }