28 lines
629 B
C#
Raw Normal View History

2024-12-13 20:38:15 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class EndItem : MonoBehaviour
{
[SerializeField] private Image icon;
[SerializeField] private Text num;
public void SetData(Falling fall)
{
var data = JsonTab.Instance.tables.Item.Get(fall.id);
icon.sprite = AssetBundleManager.ins.Sprite(data.Icon, AtlasType.ItemIcon);
num.text = fall.num.ToString();
}
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}