1234567891011121314151617181920212223242526272829303132333435363738394041 |
- 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<WorldMapConfig>(1);
- BigMapItem bigMapItem = new BigMapItem();
- GameObjectPool gameObjectPool2 = await GObjectPool.Instance.FetchAsync<GameObjectPool>(worldMapConfig.bigMapPrefabName + ".prefab");
- bigMapItem.CustomInit(worldMapConfig.ID, gameObjectPool2);
- }
- public async static CTask OpenPanel()
- {
- LevelChoosePanel levelChoosePanel = await UIManager.Instance.LoadAndOpenPanel<LevelChoosePanel>(null);
- levelChoosePanel.CustomInit();
- }
- }
- }
|