using asap.core; using cfg; using GameCore; using System; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.AddressableAssets; using UnityEngine.UI; public class AppearancePanel : BasePanel { [NonSerialized] public AppearanceOpenType appearanceOpenType; List toggles = new List(); List selected_tab = new List(); List redpoint = new List(); TMP_Text text_name; TMP_Text text_title; Button btn_close; Button btn_equip; Button btn_unequip; GameObject equipped; GameObject waytoget; TMP_Text text_waytoget; Transform content; GameObject item; List appearanceItems = new List(); List rodAccessoriesDatas; List gloveDatas; List rodSkinDatas; int curDataCount; int curEqIndex; int skinCount; int gloveCount; int accessoriesCount; int curMainIndex = 0; int curSubIndex = -1; Tables tables; IUIService uiService; FishingBehaviorB fishingBehavior; PlayerFishData playerFishData; GameObject fishingSkinTool; int rodID; bool unlockRod; Button btn_yugan; Button btn_view; Image bg_hud_god_image; Image rawImage; TMP_Text text_grade_rod; TMP_Text text_star_rod; string[] bg_hud_gods = { "bg_hud_god_blue", "bg_hud_god_blue", "bg_hud_god_purple", "bg_hud_god_yellow" }; CanvasGroup root; Button btn_close_view; AppearanceRodChangePanel rodChangePanel; private void Awake() { playerFishData = GContext.container.Resolve(); GetFishingBehaviorB getFishingBehavior = new GetFishingBehaviorB(); GContext.Publish(getFishingBehavior); fishingBehavior = getFishingBehavior.fishingBehavior; fishingBehavior.gameObject.SetActive(false); uiService = GContext.container.Resolve(); tables = GContext.container.Resolve(); gloveDatas = tables.TbGloveData.DataList; gloveCount = playerFishData.rodAccessoriesData.GloveIds.Count; rodAccessoriesDatas = tables.TbRodAccessoriesData.DataList; root = transform.Find("root").GetComponent(); btn_close_view = transform.Find("btn_close").GetComponent