2024-12-04 17:26:27 +08:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
public class DrawingPanel : MonoBehaviour
|
|
|
|
{
|
2024-12-07 22:30:19 +08:00
|
|
|
[SerializeField]
|
|
|
|
private List<DrawingItem> DrawingItems;
|
2024-12-04 17:26:27 +08:00
|
|
|
// Start is called before the first frame update
|
2024-12-07 22:30:19 +08:00
|
|
|
public void Reset()
|
2024-12-04 17:26:27 +08:00
|
|
|
{
|
2024-12-07 22:30:19 +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
|
|
|
}
|
|
|
|
}
|