Stamina.Drain

Method in Stamina

Declaration

public float Drain(float amount)

Description

Decreases the character's stamina by a flat amount.

Parameters

amountThe amount to decrease the character's stamina by.

Returns

floatThe new amount of stamina.

Overload

Declaration

public void Drain(IStaminaCostAction action)

Description

Decreases the character's stamina by the amount described by an action.

Parameters

actionThe stamina action being performed.

Overload

Declaration

public void Drain(StaminaCost cost)

Description

Decreases the character's stamina by the amount described by a StaminaCost.

Parameters

costThe stamina cost.