Skip to main content

ControllerMod

An abstract class in Root.Township, the global namespace.

Base for a developer debug mod that runs when ModHands fires, which happens on the DebugMod action while grab is held, only for users with debug_features.

Constructors​

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

Methods​

MemberWhat it is
protected override void Initialize()Hooks ModHands.ModCalled.
protected abstract void RunMod(Controller controller)The mod's action, given the controller that triggered it.
protected override void Terminate()Unhooks ModHands.ModCalled.