Skip to main content

CrankController

A class in Root.Township, the global namespace.

Hooks a Pickup's interaction start and end for a Crank, but both handlers are empty, so it does nothing in this build.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private Crank crankThe crank this was meant to drive. Unused.
private Pickup pickupThe pickup whose interaction events are hooked.

Methods​

3 private and internal methods
MemberWhat it is
private void Awake()Subscribes the two handlers to the pickup's InteractionStarted and InteractionEnded events.
private void StartUpdatingCrank(Interactable arg1, Interactor arg2)Empty handler for when the pickup is grabbed.
private void StopUpdatingCrank(Interactable arg1, Interactor arg2)Empty handler for when the pickup is released.