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
| Member | What it is |
|---|
DelayedHoverPickup() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private float delayToHover | Seconds to wait after release before moving back. |
private Timeline.IEntry hoverStart | The scheduled Timeline entry for the move back. |
Methods
| Member | What 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. |