StabilizeJointContainer
A class in Root.Township, Alta.Inventory.
StabilizePickupJoint for jointed containers (bags): also scales a held visual and hides the storage visual while docked.
- Listed in Items, inventory and logic
- Inherits or implements
StabilizePickupJoint - Derived types
StabilizeLantern
Constructors
| Member | What it is |
|---|---|
StabilizeJointContainer() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private CurveScaler heldScaler | Visual scaled on while the container is held. |
private CurveScaler storage | Storage visual hidden while docked. |
Methods
| Member | What it is |
|---|---|
protected override void Docked(Interactor interactor, Pickup pickup, PickupDock dock) | Shrinks and hides the storage visual, then runs the base dock handling. |
protected override void StartHandlingToPositionChanges(Interactable interactable, Interactor interactor) | Scales up the held visual, then starts the base handling. |
protected override void StopHandlingToPositionChanges(Interactable interactable, Interactor interactor) | Scales down the held visual unless docked, then stops the base handling. |
protected override void Undocked(Interactor interactor, Pickup pickup, PickupDock dock) | Shows the storage visual again, then runs the base undock handling. |