Skip to main content

ToggleLocalSpeedMenuAction

A class in Root.Township, Alta.QuickAccessActions.

Debug quick access action that switches the local player's base speed stat between 1 and 2.

Constructors​

MemberWhat it is
ToggleLocalSpeedMenuAction()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Properties​

MemberWhat it is
override bool IsActive { get; }Always false.
override bool IsValid { get; }Always true.

Methods​

MemberWhat it is
override void Run(Controller controller)Sets the "speed" stat's base to 1 if above 1, otherwise to 2.