Class DemoFacilityTarget
Inheritance
DemoFacilityTarget
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: NeoFPS.dll
Syntax
public class DemoFacilityTarget : MonoBehaviour, IHealthManager, IMonoBehaviour
Properties
health
Declaration
public float health { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
healthMax
Declaration
public float healthMax { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
invincible
Declaration
public bool invincible { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
isAlive
Declaration
public bool isAlive { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
normalisedHealth
Declaration
public float normalisedHealth { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
Methods
AddDamage(Single)
Declaration
public void AddDamage(float d)
Parameters
| Type |
Name |
Description |
| System.Single |
d |
|
AddDamage(Single, IDamageSource)
Declaration
public void AddDamage(float d, IDamageSource source)
Parameters
AddDamage(Single, Boolean)
Declaration
public void AddDamage(float d, bool critical)
Parameters
| Type |
Name |
Description |
| System.Single |
d |
|
| System.Boolean |
critical |
|
AddDamage(Single, Boolean, IDamageSource)
Declaration
public void AddDamage(float d, bool critical, IDamageSource source)
Parameters
| Type |
Name |
Description |
| System.Single |
d |
|
| System.Boolean |
critical |
|
| IDamageSource |
source |
|
AddDamage(Single, Boolean, IDamageSource, RaycastHit)
Declaration
public void AddDamage(float d, bool critical, IDamageSource source, RaycastHit hit)
Parameters
| Type |
Name |
Description |
| System.Single |
d |
|
| System.Boolean |
critical |
|
| IDamageSource |
source |
|
| RaycastHit |
hit |
|
AddDamage(Single, Boolean, RaycastHit)
Declaration
public void AddDamage(float d, bool critical, RaycastHit hit)
Parameters
| Type |
Name |
Description |
| System.Single |
d |
|
| System.Boolean |
critical |
|
| RaycastHit |
hit |
|
AddHealth(Single)
Declaration
public void AddHealth(float h)
Parameters
| Type |
Name |
Description |
| System.Single |
h |
|
AddHealth(Single, IDamageSource)
Declaration
public void AddHealth(float h, IDamageSource source)
Parameters
Events
onHealthChanged
Declaration
public event HealthDelegates.OnHealthChanged onHealthChanged
Event Type
onHealthMaxChanged
Declaration
public event HealthDelegates.OnHealthMaxChanged onHealthMaxChanged
Event Type
onIsAliveChanged
Declaration
public event HealthDelegates.OnIsAliveChanged onIsAliveChanged
Event Type
Implements