using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using JC; /* 商城界面 */ public class ShopView : MonoBehaviour { [SerializeField] Sprite[] optionSprites; [SerializeField] GameObject options; [SerializeField] ScrollPanel productsPanel; [SerializeField] ScrollPanel bagPanel; [SerializeField] ScrollPanel equippedPanel; [SerializeField] GameObject introduceItem; void Start() { InitOptions(); } void InitOptions() { for (int i = 0; i < this.options.transform.childCount; i++) { int index = i; Button button = this.options.transform.GetChild(i).gameObject.AddComponent