WXGame/Blacksmith/Assets/Script/UI/DrawingPanel.cs

19 lines
471 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DrawingPanel : MonoBehaviour
{
[SerializeField]
private List<DrawingItem> DrawingItems;
// Start is called before the first frame update
public void Reset()
{
var drawData = JsonTab.Instance.tables.Weapon.DataList;
for (int i = 0; i < DrawingItems.Count; i++)
{
DrawingItems[i].InitData(drawData[i].ID);
}
}
}