Example #1
0
    public void OpenSellWindow(WorldItem itemToSell) // Called from GM. The window that pops up: "Do you want to sell this item"?
    {
        sellWindow.SetActive(true);
        sellWindowItemImage.sprite     = itemToSell.GetWorldItemSprites().normalSprites[0];
        sellWindowItemName.text        = itemToSell.myGameItem.itemProperties.displayedName;
        sellWindowItemPrice.text       = itemToSell.myGameItem.itemProperties.sellPriceFlorets.ToString();
        sellWindowItemDescription.text = itemToSell.myGameItem.itemProperties.itemDescription;

        selectedWorldItem = itemToSell;

        //instancesOfCurrentItem = GM.GetInstancesOfGameItemOwnedWorldAndInv(itemToSell.gameItem.itemProperties.itemID);
        //currentItem = itemToSell[0];
    }