Example #1
0
 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";
 }
Example #2
0
 private void Awake()
 {
     inventoryAssetPair = new InventoryAssetPair();
     onElementClicked.AddListener(OnElementClickChanged);
     preview = GetComponent <Image>();
     ic      = GetComponentInParent <InventoryScreen>();
     GetComponent <Button>()?.onClick.AddListener(Select);
 }
Example #3
0
        private void Awake()
        {
            currentAsset = new InventoryAssetPair();
            selectBtn.onClick.AddListener(ButtonClicked);

            if (isEasyPrefab)
            {
                SetUpEasyPrefab();
                ViewInventory();
            }
        }