ClimberActivator
A class in Root.Township, the global namespace.
Scene component that turns on smooth locomotion and the Climber for the local player, and blocks teleport locomotion while it exists.
- Listed in Global namespace: C to D
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
ClimberActivator() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Methods
3 private and internal methods
| Member | What it is |
|---|---|
private void ActivateClimber(PlayerController player) | When the local player is set, enables its smooth locomotion and its Climber. |
private void Awake() | Hooks the local player event and starts blocking teleporting. |
private void OnDestroy() | Unhooks the event and stops blocking teleporting. |