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

19 lines
471 B
C#
Raw Normal View History

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