Stamina.Drain
Method in Stamina
Declaration
public float Drain(float amount)Description
Decreases the character's stamina by a flat amount.
Parameters
| amount | The amount to decrease the character's stamina by. |
Returns
| float | The 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
| action | The 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
| cost | The stamina cost. |