A class in Root.Township, the global namespace.
Client visual that clones a pip around a circle and pulses their height in a travelling wave, like a spinner.
Constructors
| Member | What it is |
|---|
AnimateTime() | 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 animationSpeed | Wave cycles per second. |
private float currentProgress | Current wave phase, 0 to 1. |
private Transform pip | The template pip, also used as the first one. |
private int pipCount | How many pips go around the circle. |
private Transform[] pips | All pip transforms, made in Awake. |
private AnimationCurve scaleCurve | Maps the wave value (a cosine, -1 to 1) to a pip's Y scale. |
Methods
3 private and internal methods
| Member | What it is |
|---|
private void Awake() | Makes pipCount copies of the pip, spaced evenly around the forward axis. |
private void OnDrawGizmosSelected() | Empty. |
private void Update() | Advances the wave and sets each pip's Y scale from scaleCurve. |