Interface IHealthManager
Assembly: NeoFPS.dll
Syntax
public interface IHealthManager : IMonoBehaviour
Properties
health
Declaration
float health { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
healthMax
Declaration
float healthMax { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
invincible
Declaration
bool invincible { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
isAlive
Declaration
Property Value
| Type |
Description |
| System.Boolean |
|
normalisedHealth
Declaration
float normalisedHealth { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
Methods
AddDamage(Single)
Declaration
void AddDamage(float damage)
Parameters
| Type |
Name |
Description |
| System.Single |
damage |
|
AddDamage(Single, IDamageSource)
Declaration
void AddDamage(float damage, IDamageSource source)
Parameters
AddDamage(Single, Boolean)
Declaration
void AddDamage(float damage, bool critical)
Parameters
| Type |
Name |
Description |
| System.Single |
damage |
|
| System.Boolean |
critical |
|
AddDamage(Single, Boolean, IDamageSource)
Declaration
void AddDamage(float damage, bool critical, IDamageSource source)
Parameters
| Type |
Name |
Description |
| System.Single |
damage |
|
| System.Boolean |
critical |
|
| IDamageSource |
source |
|
AddDamage(Single, Boolean, IDamageSource, RaycastHit)
Declaration
void AddDamage(float damage, bool critical, IDamageSource source, RaycastHit hit)
Parameters
| Type |
Name |
Description |
| System.Single |
damage |
|
| System.Boolean |
critical |
|
| IDamageSource |
source |
|
| RaycastHit |
hit |
|
AddDamage(Single, Boolean, RaycastHit)
Declaration
void AddDamage(float damage, bool critical, RaycastHit hit)
Parameters
| Type |
Name |
Description |
| System.Single |
damage |
|
| System.Boolean |
critical |
|
| RaycastHit |
hit |
|
AddHealth(Single)
Declaration
Parameters
| Type |
Name |
Description |
| System.Single |
h |
|
AddHealth(Single, IDamageSource)
Declaration
void AddHealth(float h, IDamageSource source)
Parameters
Events
onHealthChanged
Declaration
event HealthDelegates.OnHealthChanged onHealthChanged
Event Type
onHealthMaxChanged
Declaration
event HealthDelegates.OnHealthMaxChanged onHealthMaxChanged
Event Type
onIsAliveChanged
Declaration
event HealthDelegates.OnIsAliveChanged onIsAliveChanged
Event Type