Interface IStaminaSystem
Assembly: NeoFPS.dll
Syntax
public interface IStaminaSystem
Properties
isExhausted
Declaration
bool isExhausted { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
maxStamina
Declaration
float maxStamina { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
stamina
Declaration
Property Value
| Type |
Description |
| System.Single |
|
staminaNormalised
Declaration
float staminaNormalised { get; }
Property Value
| Type |
Description |
| System.Single |
|
staminaRefreshRate
Declaration
float staminaRefreshRate { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
Methods
AddStaminaDrain(StaminaDrainDelegate)
Declaration
void AddStaminaDrain(StaminaDrainDelegate drain)
Parameters
DecrementStamina(Single, Boolean)
Declaration
void DecrementStamina(float amount, bool isFactor = false)
Parameters
| Type |
Name |
Description |
| System.Single |
amount |
|
| System.Boolean |
isFactor |
|
IncrementStamina(Single, Boolean)
Declaration
void IncrementStamina(float amount, bool isFactor = false)
Parameters
| Type |
Name |
Description |
| System.Single |
amount |
|
| System.Boolean |
isFactor |
|
RemoveStaminaDrain(StaminaDrainDelegate)
Declaration
void RemoveStaminaDrain(StaminaDrainDelegate drain)
Parameters
SetStamina(Single, Boolean)
Declaration
void SetStamina(float amount, bool normalised = false)
Parameters
| Type |
Name |
Description |
| System.Single |
amount |
|
| System.Boolean |
normalised |
|
Events
onStaminaChanged
Declaration
event UnityAction onStaminaChanged
Event Type
| Type |
Description |
| UnityAction |
|