StaminaSettings


Declaration

[Serializable]
public class StaminaSettings : MovementBehaviorSettings<Stamina>

Description

Settings for a stamina behavior.

Properties

initialAmountThe amount of stamina the character starts with.
maxAmountThe maximum amount of stamina the character can have.
regenerateWhether the stamina should regenerate over time.
regenRateThe amount of stamina regenerated per second.
regenDelayThe amount of seconds before regeneration begins, for example, after the player is damaged.
Inherited

Properties

activeWhether the settings are active on a movement profile. Inactive settings will not display in the editor.
enabledTurns on or off the settings behavior. Enabled behaviors are updated every frame.
isActiveAndEnabledWhether the settings are active and enabled.