AttackResultModifier.Initialize
#
Declarationpublic virtual void Initialize(Inventory host, GDTKItem item)
#
ParametersName | Description |
---|---|
host | Inventory hosting the item |
item | Item to initialize |
#
DescriptionInitialize the plugin
#
Usageusing 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); } }
}