16 lines
365 B
C#
16 lines
365 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class UnitSetUiCtrl : MonoBehaviour
|
|
{
|
|
[SerializeField] GameObject itemPrefab;
|
|
[SerializeField] Transform content;
|
|
private void OnEnable()
|
|
{
|
|
foreach(var item in Statics.equipment)
|
|
{
|
|
Instantiate(itemPrefab, content).GetComponent<ItemCtrl>().SetData(item);
|
|
}
|
|
}
|
|
}
|