Skip to main content

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.

Constructors​

MemberWhat it is
ClimberActivator()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Methods​

3 private and internal methods
MemberWhat 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.