VR Interaction Framework  1.0
A vr framework for the Oculus Quest
BNG.Damageable Class Reference

A basic damage implementation. More...

Inheritance diagram for BNG.Damageable:

Public Member Functions

void DealDamage (float damageAmount)
 
void DestroyThis ()
 

Public Attributes

float Health = 100
 
List< GameObject > ActivateGameObjectsOnDeath
 
List< GameObject > DeactivateGameObjectsOnDeath
 
List< Collider > DeactivateCollidersOnDeath
 
bool DestroyOnDeath = true
 Destroy this object on Death? False if need to respawn. More...
 
float DestroyDelay = 0f
 How long to wait before destroying this objects More...
 
bool Respawn = false
 If true the object will be reactivated according to RespawnTime More...
 
float RespawnTime = 10f
 If Respawn true, this gameObject will reactivate after RespawnTime. More...
 
bool RemoveBulletHolesOnDeath = true
 Remove any decals that were parented to this object on death. More...
 

Detailed Description

A basic damage implementation.

Call a function on death. Allow for respawning.

Member Function Documentation

◆ DealDamage()

void BNG.Damageable.DealDamage ( float  damageAmount)

◆ DestroyThis()

void BNG.Damageable.DestroyThis ( )

Member Data Documentation

◆ ActivateGameObjectsOnDeath

List<GameObject> BNG.Damageable.ActivateGameObjectsOnDeath

◆ DeactivateCollidersOnDeath

List<Collider> BNG.Damageable.DeactivateCollidersOnDeath

◆ DeactivateGameObjectsOnDeath

List<GameObject> BNG.Damageable.DeactivateGameObjectsOnDeath

◆ DestroyDelay

float BNG.Damageable.DestroyDelay = 0f

How long to wait before destroying this objects

◆ DestroyOnDeath

bool BNG.Damageable.DestroyOnDeath = true

Destroy this object on Death? False if need to respawn.

◆ Health

float BNG.Damageable.Health = 100

◆ RemoveBulletHolesOnDeath

bool BNG.Damageable.RemoveBulletHolesOnDeath = true

Remove any decals that were parented to this object on death.

Useful for clearing unused decals.

◆ Respawn

bool BNG.Damageable.Respawn = false

If true the object will be reactivated according to RespawnTime

◆ RespawnTime

float BNG.Damageable.RespawnTime = 10f

If Respawn true, this gameObject will reactivate after RespawnTime.

In seconds.


The documentation for this class was generated from the following file: