public void OnClickIcon() { Image cardImg = cardObj.GetComponent <Image>(); PicLoader cardLoader = cardObj.GetComponent <PicLoader>(); string cardName = "f" + uiText.text; cardLoader.LoadPic("card", cardName, cardImg); }
public void UpdateItem(int count) { uiText.text = (count + 1).ToString("000"); string iconName = "f" + uiText.text; PicLoader picLoader = GetComponent <PicLoader>(); picLoader.LoadPic("icon", iconName, uiIcon); }