StaminaCost Constructor
Constructor in StaminaCost
Declaration
public StaminaCost(float useAmount, float requiredAmount = 0F, bool percentage = false, bool timescaled = false)
Description
Creates a new stamina cost of the given amount.
Parameters
useAmount | The amount of stamina drained. |
requiredAmount | The minimum amount of stamina required to perform the action. |
percentage | Whether the stamina cost is a percentage or fixed value. |
timescaled | Whether the stamina cost is multiplied by Time.deltaTime . |