Skip to main content

PlayerDockDropper

A class in Root.Township, the global namespace.

Empties a dock on the player's body whenever the player's scale changes.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private PickupDock dockThe dock on the same object.
private PlayerCharacter playerThe player character this dock belongs to.

Methods​

2 private and internal methods
MemberWhat it is
private void Awake()Hooks the player's ScaleChanged.
private void ScaleChanged(PlayerController player, float oldScale, float newScale)Undocks everything from the dock when the scale actually changes.