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() { } }