using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; using UnityEngine.Events; [System.Serializable] public class CommandPanel : MonoBehaviour { [Header("コマンドパネルオブジェクト")] [SerializeField] GameObject CommandPanelObject; [Header("コマンドパネル背景")] [SerializeField] RectTransform CommandPanelBackGround; [Header("ボタン親")] [SerializeField] Transform buttonParent; bool first = false; private void Start() { if (!false) { first = true; #if !UNITY_EDITOR && UNITY_ANDROID CommandPanelObject.transform.localScale *= 1.5f; #endif } } public bool isActive() { return CommandPanelObject.gameObject.activeSelf; } public void SetUpCommandPanel(List CardCommands, FieldPermanentCard fieldPokemonCard, HandCard handCard) { if (CardCommands.Count == 0) { return; } List Buttons = new List(); for (int i = 0; i < buttonParent.childCount; i++) { Buttons.Add(new CardCommandButton(buttonParent.GetChild(i).GetComponent