using System.Collections.Generic; using asap.core; using cfg; using DG.Tweening; using GameCore; using TMPro; using UnityEngine; using UnityEngine.AddressableAssets; using UnityEngine.EventSystems; using UnityEngine.UI; public partial class FishingRodPanel : BasePanel { Animation ani; Tables _tables; Transform LevelRoot; Transform AscendRoot; GameObject loading; Image mask_bottom; Image mask_top; UIDrag uiDrag; public float speed = 0.5f; public float RodApperXOffset = -0.5f; public float RodAppearTime = 0.2f; private Dictionary rodAvatar = new Dictionary(); private List rodPrefab = new List(); GameObject currentRod; Rod RodBehaviour; TMP_Text text_damage_num; TMP_Text text_info; GameObject effect_yugan_shengji; //下部列表 Button btn_close; attributes_tips attributes_tips; Button BtnCloseTips; List rodItemDatas = new List(); private RodItemData data; private bool isBoxOpenGuide; private RodAscend curRodAscend; RodData config; RodSkinData skin; string[] sp_rod_title = { "sp_rod_title_blue", "sp_rod_title_blue", "sp_rod_title_purple", "sp_rod_title_yellow" }; string[] sp_rod_level = { "sp_rod_level_blue", "sp_rod_level_blue", "sp_rod_level_purple", "sp_rod_level_yellow" }; string[] sp_rod_bottom_mask = { "sp_rod_bottom_mask_blue", "sp_rod_bottom_mask_blue", "sp_rod_bottom_mask_purple", "sp_rod_bottom_mask_yellow" }; string[] sp_rod_top_mask = { "sp_rod_top_mask_blue", "sp_rod_top_mask_blue", "sp_rod_top_mask_purple", "sp_rod_top_mask_yellow" }; FishingRodInfoPanel fishingRodInfoPanel; PlayerFishData playerFishData; FishingRodUpSystem upSystem; RawImage rawImageRod; //GameObject particle; public Material Rod_black; IUIService uIService; private void Awake() { uIService = GContext.container.Resolve(); upSystem = GContext.container.Resolve(); UIManager.Instance.DestroyUI(UITypes.FishingShopPanel); _tables = GContext.container.Resolve(); ani = GetComponent(); loading = transform.Find("root/loading").gameObject; playerFishData = GContext.container.Resolve(); LevelRoot = transform.Find("root/LevelRoot"); AscendRoot = transform.Find("root/AscendRoot"); rawImageRod = transform.Find("root/RawImageRod").GetComponent(); rawImageRod.gameObject.SetActive(true); mask_bottom = transform.Find("root/mask_bottom").GetComponent(); mask_top = transform.Find("root/mask_top").GetComponent(); uiDrag = rawImageRod.transform.GetComponent(); text_damage_num = transform.Find("root/attributes_tips/text_info2").GetComponent(); text_info = transform.Find("root/attributes_tips/text_info3").GetComponent(); effect_yugan_shengji = transform.Find($"root/effect_yugan_shengji").gameObject; btn_close = transform.Find("bottom/btn_close").GetComponent