using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using GCGame.Table; public class WeddingCarMenuItem : UIItemSelect { public Image _BG; public Text _Desc; public int _CurType = -1; public override void Show(Hashtable hash) { base.Show(hash); var tabId = (int)hash["InitObj"]; _CurType = tabId; var weddingCarTab = TableManager.GetWeddingCarConfigByID(tabId, 0); if (weddingCarTab == null) return; _InitInfo = tabId; LoadAssetBundle.Instance.SetImageSprite(_BG, weddingCarTab.IconName); _Desc.text = weddingCarTab.WeddingTypeName; } }