⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    Class DemoFacilityTarget

    Inheritance
    Object
    MonoBehaviour
    DemoFacilityTarget
    Implements
    IHealthManager
    IMonoBehaviour
    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()
    Namespace: NeoFPS.Samples.SinglePlayer
    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
    Type Name Description
    System.Single d
    IDamageSource source

    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
    Type Name Description
    System.Single h
    IDamageSource source

    Events

    onHealthChanged

    Declaration
    public event HealthDelegates.OnHealthChanged onHealthChanged
    Event Type
    Type Description
    HealthDelegates.OnHealthChanged

    onHealthMaxChanged

    Declaration
    public event HealthDelegates.OnHealthMaxChanged onHealthMaxChanged
    Event Type
    Type Description
    HealthDelegates.OnHealthMaxChanged

    onIsAliveChanged

    Declaration
    public event HealthDelegates.OnIsAliveChanged onIsAliveChanged
    Event Type
    Type Description
    HealthDelegates.OnIsAliveChanged

    Implements

    IHealthManager
    IMonoBehaviour
    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX