Skip to main content

CookingGarnishComponent

A class in Root.Township, Alta.Cooking.

Marks a pickup as a garnish for cooking pots. Hands the pot the item's CookingGarnish and the player who last held it.

Constructors​

MemberWhat it is
CookingGarnishComponent()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private CookingGarnish garnishItemCached CookingGarnish behind GarnishItem.
private Pickup pickupThe garnish pickup.

Properties​

2 private and internal properties
MemberWhat it is
private Player Alta.Cooking.ICookingGarnishMarker.CookingPlayer { get; }The player who last interacted with the pickup.
private CookingGarnish Alta.Cooking.ICookingGarnishMarker.GarnishItem { get; }The CookingGarnish on the pickup's item, looked up once. Logs an error if it's missing.