private void AddShrunkenVisual() | Spawns the item's shrunken visual (or the default one) on the pickup and adds its colliders to the pickup. |
private void CalculateTargetSize() | Works out the scale factor for the shrunken pickup, from the item override or the global shrunken size. |
private void CalculateVisualScalingFactor() | Works out how much to scale the shrunken visual from the pickup's and visual's bounds, or the item's override. Uses a fixed 10 on headless servers. |
private IEnumerator ReleaseParticles(PooledObject particles, float waitTime) (iterator) | Coroutine that returns the scaling particles to the pool after a wait. |
private void RemoveShrunkenVisual() | Releases the shrunken visual and takes its colliders off the pickup. |
private void ResetScaleOnPickup(Interactable pickupInteractable, Interactor interactor) | On release, scales the pickup back to normal over the global duration, unless a dock is scaling it, and removes the shrunken visual. |
private IEnumerator ScaleOverTime(Transform pickupTransform, float targetScale, float duration) (iterator) | Coroutine that lerps the pickup's scale to a target. Stops if the pickup is docked. |
private void ScalePickup(Transform pickupTransform, float scaleFactor, float duration) | Scales the pickup to a factor of its normal size, at once or over time, and spawns scaling particles on clients. |
private void ScalePickupAfterUndock(Interactor interactor, Pickup pickup, PickupDock dock) | Shrinks the pickup once it has left its dock. |
private void ScalePickupDown(Interactable pickupInteractable, Interactor interactor) | On grab, shrinks the pickup at once and adds the shrunken visual. If docked, waits for the undock first. |
private void SetPickupColliderActive(bool isActive) | Turns all the pickup's colliders on or off. |
private void SpawnScalingParticles() | Spawns the global shrinking particles at the pickup and releases them after half a second. |
private void WaitForPickupToBeUndocked() | Subscribes ScalePickupAfterUndock to the pickup's Undocked event. |