StaminaCost Constructor

Constructor in StaminaCost


public StaminaCost(float useAmount, float requiredAmount = 0F, bool percentage = false, bool timescaled = false)


Creates a new stamina cost of the given amount.


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.