StaminaCost


Declaration

[Serializable]
public struct StaminaCost

Description

A cost to perform a stamina action.

Properties

useAmountThe amount of stamina drained.
requiredAmountThe minimum amount of stamina required to perform the action.
percentageWhether the stamina cost is a percentage or fixed value.
timescaledWhether the stamina cost is multiplied by Time.deltaTime.

Constructors

StaminaCostCreates a new stamina cost of the given amount.