A class in Root.Township, the global namespace.
Empties a dock on the player's body whenever the player's scale changes.
Constructors
| Member | What it is |
|---|
PlayerDockDropper() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private PickupDock dock | The dock on the same object. |
private PlayerCharacter player | The player character this dock belongs to. |
Methods
2 private and internal methods
| Member | What 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. |