A class in Root.Township, the global namespace.
Client effect: a pooled trail that follows a player when they teleport or stream-move. Taken from a pool by PlayerSpecialEffectsController.
Constructors
| Member | What it is |
|---|
TeleporterTrailLerper() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
Properties
Methods
| Member | What it is |
|---|
void ResetTimer() | Restarts the pooled object's lifetime timer. |
void SetEffectPlayStatus(EffectPlayStatus status) | Sets the play status of the follow lerper's effect. |
void SetPosition(Vector3 position) | Moves the trail to a position and restarts the lerper there without a lerp. |
void SetTarget(PlayerController target) | Sets the player the trail follows. |
2 private and internal methods
| Member | What it is |
|---|
private void Awake() | Hooks ResetLerper to the pooled object's release. |
private void ResetLerper(PooledObject pooled) | On release to the pool: stops the effect, restarts the lerper and clears its target. |
Used in
Members of other types that take, return or hold a TeleporterTrailLerper: