TouchScreenButtonGrower
A class in Root.Township, the global namespace.
Scales a TouchScreenButtonOld along a curve while it is pressed, and snaps it back to its starting size on release. Client-side visual only.
- Listed in Global namespace: T to X
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
TouchScreenButtonGrower() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
5 private and internal fields
| Member | What it is |
|---|---|
private TouchScreenButtonOld button | The button being scaled. |
private AnimationCurve growCurve | Scale multiplier over normalised time 0 to 1. |
private float growDuration | Seconds the grow takes. |
private AltaCoroutine growRoutine | The running grow coroutine, or null. |
private Vector3 startingScale | The button's local scale at Start. |