修改背包item
This commit is contained in:
parent
a05111a86c
commit
7d6468af15
|
@ -20,7 +20,7 @@ public class UI_ToolOrMaterialsOrDeviceItem : BaseItem
|
|||
}
|
||||
if (GameManager.RunModelMgr.SceneType != E_SceneType.Site)
|
||||
{
|
||||
GetControl<Image>("iconBtn").enabled = false;
|
||||
GetControl<Image>("iconBtn").GetComponent<Button>().interactable = false;
|
||||
}
|
||||
GetControl<TextMeshProUGUI>("countText").text = _itemInfo.Count.ToString();
|
||||
GetControl<Image>("iconBtn").sprite = Resources.Load<Sprite>(Const.LoadToolAndMaterialPath + currentItem.toolName);
|
||||
|
|
Loading…
Reference in New Issue