using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class AssetBundleIconPrefabCtrl : IconBase { public Button button_showDetail; public Button button_remove; AssetBundleMsg thisMsg; // Start is called before the first frame update void Start() { button_showDetail.onClick.AddListener(ShowDetailButton); button_remove.onClick.AddListener(RemoveButton); } public override void SetUpdateIconMsg(object msg,string msgType="") { thisMsg = msg as AssetBundleMsg; } private void RemoveButton() { this.transform.parent.GetComponent().RemoveChild(text_IconName.text); } private void ShowDetailButton() { EventCenter.Instance.EventTrigger("ShowModelMsg", thisMsg); } }