using Excel2Json; using Fort23.UTool; using UnityEngine; namespace Fort23.Mono { public class BigMapItem { public GameObjectPool gameObjectPool; public WorldMapConfig worldMapConfig; private ReferenceCollector referenceCollector; public async void CustomInit(int worldMapId, GameObjectPool gameObjectPool) { this.gameObjectPool = gameObjectPool; worldMapConfig = ConfigComponent.Instance.Get(worldMapId); referenceCollector = gameObjectPool.own.GetComponent(); for (var i = 0; i < worldMapConfig.bigMapId.Length; i++) { GameObject gam = referenceCollector.Get("map_" + worldMapConfig.bigMapId[i]); BigMapWidget bigMapWidget = await UIManager.Instance.CreateGComponentForObject(gam, null); bigMapWidget.CustomInit(worldMapConfig.bigMapId[i]); } } } }