StaminaSettings
Class in Zigurous.CharacterController
Inherits from MovementBehaviorSettings<T>
Declaration
[Serializable]
public class StaminaSettings : MovementBehaviorSettings<Stamina>
Description
Settings for a stamina behavior.
Properties
initialAmount | The amount of stamina the character starts with. |
maxAmount | The maximum amount of stamina the character can have. |
regenerate | Whether the stamina should regenerate over time. |
regenRate | The amount of stamina regenerated per second. |
regenDelay | The amount of seconds before regeneration begins, for example, after the player is damaged. |
Inherited
Properties
active | Whether the settings are active on a movement profile. Inactive settings will not display in the editor. |
enabled | Turns on or off the settings behavior. Enabled behaviors are updated every frame. |
isActiveAndEnabled | Whether the settings are active and enabled. |