using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TcgEngine; using Unity.VisualScripting; namespace TcgEngine.UI { public class PresetDeck : UIPanel { [Header("展示面板")] public UIPanel preset_lineup; public Button preset_lineup_button; public UIPanel hide_panel; public GameObject deck_lines_prefab; public RectTransform deck_line_content; [Header("预设面板")] public DeckSelector deckSelector; public DropdownValue dropdownValue; public int currentSelect; public Button selectDeckButton; private Button hide_panel_button; // 选择卡组面板 private Dictionary desk_lines = new Dictionary(); private static PresetDeck instance; protected override void Awake() { base.Awake(); instance = this; } protected override void Start() { base.Start(); for (int i = 0; i < deck_line_content.transform.childCount; i++) Destroy(deck_line_content.transform.GetChild(i).gameObject); preset_lineup_button.onClick.AddListener(OnPresetLineupPanle); hide_panel_button = hide_panel.GetComponent