using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class CustoMizeItem : MonoBehaviour { int indexThisResource; public void SetInfo(string nameCustomize, int thisIndex, Sprite thisSprite) { indexThisResource = thisIndex; Text txtName = GetComponentInChildren(); txtName.text = nameCustomize; Image img = transform.Find("EditImg").GetComponent(); img.sprite = thisSprite; } public void CustomizeThisItem() { CustomizeZoe_Screen.instance.OpenCustomization(indexThisResource); } }