SocketAbility.Initialize
Declaration#
public virtual void Initialize(Inventory host, GDTKItem item)Parameters#
| Name | Description |
|---|---|
| host | Inventory hosting the item |
| item | Item to initialize |
Description#
Initialize the plugin
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
// Plugins are automatically initialized by the system when the item is added // They can be initialized manually if needed public void ExampleMethod(GDTKItem target, Inventory host) { foreach (ItemPlugin plugin in target.GetPlugins<ItemPlugin>()) { plugin.Initialize(host, target); } }
}