MerchantWindowUI.SellToPlayer
Declaration#
public void SellToPlayer(GDTKItem item)Parameters#
| Name | Description |
|---|---|
| item | Item for transaction |
Description#
Sell an item to the player
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(MerchantWindowUI target, GDTKItem other) { target.SellSelectedToPlayer(other); }
}Declaration#
public void SellToPlayer(GDTKItem item, Int32 count)Parameters#
| Name | Description |
|---|---|
| item | Item for transaction |
| count | Count of item for transaction |
Description#
Sell a certain count of an item to the player
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(MerchantWindowUI target, GDTKItem other) { target.SellSelectedToPlayer(other, 1); }
}