using asap.core; using System; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; public class FishMapItem : PanelItemBase { Transform root; Image img_map; private GameObject mask; Image bar; private TMP_Text text_bar; GameObject newGo; private GameObject redpoint; Button btn_item; private GameObject mask_empty; private TMP_Text text_require; ShowImageData imageData = null; private void Awake() { root = transform.Find("p_icon_item/icon_item1/btn_green"); img_map = root.Find("mask_map/img_map").GetComponent(); bar = root.Find("mask_empty/bg_bar/bar").GetComponent(); text_bar = root.Find("mask_empty/bg_bar/text_progress").GetComponent(); newGo = root.Find("new").gameObject; redpoint = root.Find("redpoint").gameObject; btn_item = root.GetComponent