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