Skip to main content

Merchant.Restock

Declaration#

public void Restock(bool clearExisting, bool resetCurrency)

Parameters#

NameDescription
clearExistingClear existing items before restocking
resetCurrencyReset available currency

Description#

Restock items in vendor

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class CodeSample : MonoBehaviour{
    public void Example(Merchant target)    {        target.Restock(true, true);    }
}