Skip to main content

ItemPlugin.AfterAdd

Declaration#

public virtual void AfterAdd()

Description#

Method run after item is added to inventory

Usage#

using UnityEngine;
namespace NullSave.GDTK.Inventory{    public class ExampleAction : ItemPlugin    {
        // This override method allows plugins to respond to being added to the inventory        public override void AfterAdd()        {            Debug.Log(item.info.id + " says I was added to the inventory on " + host.gameObject.name);        }
    }}