Skip to main content

UnlockDockManager

A class in Root.Township, the global namespace.

Refreshes all its smelter recipe unlocks whenever an item is taken out of any of their docks.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private SmelterRecipeUnlock[] smelterRecipeUnlocksThe smelter recipe unlocks to manage.

Methods​

2 private and internal methods
MemberWhat it is
private void Awake()Hooks the undock event of each unlock's dock.
private void RefreshUnlocks(Interactor interactor, Pickup pickup, PickupDock dock)Calls RefreshUnlock on every smelter recipe unlock.