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

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.