18 lines
474 B
C#
18 lines
474 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class ShopPanelController : ScrollPanelController
|
|
{
|
|
public virtual void Show(List<ShopItem> items)
|
|
{
|
|
for (int i = 0; i < items.Count && i <= MAX_COUNT; i++)
|
|
{
|
|
var scrollItem= Instantiate(scrollItemPrefab, content.transform);
|
|
scrollItem.GetComponent<ShopItemController>().Init(items[i]);
|
|
|
|
}
|
|
base.Show();
|
|
}
|
|
}
|