public void MakeShopModule(Transform moduleParent, Vector3 spawnPosit) { GameObject shopModuleObj = Resources.Load <GameObject>("Prefabs/Maps/ETC/ShopModule"); if (shopModuleObj != null) { ShopModule shopModule = GameObject.Instantiate(shopModuleObj, spawnPosit, Quaternion.identity, moduleParent).GetComponent <ShopModule>(); shopModule.AddToMapManager(mapManager); shopModule.GetMyTiles(); List <Tile> shopWallList = shopModule.GetWallList(); for (int i = 0; i < shopWallList.Count; i++) { everyWallList.Add(shopWallList[i]); } } }