Skip to main content

RecipePlugin.Initialize

Declaration#

public virtual void Initialize(Inventory host)

Parameters#

NameDescription
hostInventory to use for component checks

Description#

Initialize the plugin

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(GDTKRecipe target, Inventory other)    {        foreach (RecipePlugin plugin in target.plugins)        {            plugin.Initialize(other);        }    }
}