SpeedModifierLocoAction
A class in Root.Township, the global namespace.
Locomotion modifier action asset that scales the player's movement speed while active, for example in deep water.
- Listed in Global namespace: S
- Inherits or implements
LocomotionModifierAction - Attributes
CreateAssetMenu
Constructors
| Member | What it is |
|---|---|
SpeedModifierLocoAction() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
1 private and internal field
Methods
| Member | What it is |
|---|---|
override void Begin(SmoothLocomotionPlayerController player) | Sets the player's EnvironmentSpeedModifier to speedModifier. |
override void Finish(SmoothLocomotionPlayerController player) | Resets EnvironmentSpeedModifier to 1. |