SwipePromptController
A class in Root.Township, the global namespace.
Shows a swipe hint on an item scroller after a delay, until the player has swiped once. Used on customization menus.
- Listed in Global namespace: S
- Inherits or implements
MonoBehaviour,IBuildRendererPostBake,IBuildBakeable
Constructors
| Member | What it is |
|---|---|
SwipePromptController() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
6 private and internal fields
| Member | What it is |
|---|---|
private float delayToPrompt | Seconds to wait before showing the prompt. |
private bool hasSwiped | True once the player has swiped. |
private GameObject prompt | The hint object to show and hide. |
private Coroutine promptDelay | The running delay coroutine. |
private ItemScroller scroller | Item scroller checked for whether it can scroll. |
private ScrollManager[] scrollManagers | Scroll managers whose item changes recheck the prompt. |
Methods
| Member | What it is |
|---|---|
void HasSwiped() | Marks that the player swiped, so the prompt doesn't show again. |