public void SelectItem(InventoryAssetPair inventoryAssetPair) { currentAsset = inventoryAssetPair; this.normalText.text = ""; this.normalText.text += "Asset Name" + " : " + currentAsset.asset.name + "\n"; this.normalText.text += "Asset Context" + " : " + currentAsset.asset.context + "\n"; }
private void Awake() { inventoryAssetPair = new InventoryAssetPair(); onElementClicked.AddListener(OnElementClickChanged); preview = GetComponent <Image>(); ic = GetComponentInParent <InventoryScreen>(); GetComponent <Button>()?.onClick.AddListener(Select); }
private void Awake() { currentAsset = new InventoryAssetPair(); selectBtn.onClick.AddListener(ButtonClicked); if (isEasyPrefab) { SetUpEasyPrefab(); ViewInventory(); } }