Cooker

This component allows your prefab to be used as a fire for cookable items. Usually it doesn’t require any editing and can be added/removed on demand.

Component Cooker Methods

NameParameterReturnsDescription
CookItemitem, chefnewitemYou only need to use this function if your prefab is a container or something alike.

Component Cooker Fields

TypeNameDescription
functiononcookitemFires when cooking something. Args: item, product