Skip to main content

DelayedHoverPickup

A class in Root.Township, the global namespace.

A HoverPickup that waits before floating back to its hover spot after being let go. Grabbing it again cancels the wait.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private float delayToHoverSeconds to wait after release before moving back.
private Timeline.IEntry hoverStartThe scheduled Timeline entry for the move back.

Methods​

MemberWhat it is
protected override void HandleGrabbed(Interactable interactable, Interactor interactor)Cancels a pending move back, then handles the grab as normal.
protected override void OnDestroy()Cancels a pending move back.
protected override void StartMovingBack(Interactable interactable, Interactor interactor)Schedules the normal move back after delayToHover seconds on the Timeline.