VR Interaction Framework
1.0
A vr framework for the Oculus Quest
|
A basic damage implementation. More...
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... | |
A basic damage implementation.
Call a function on death. Allow for respawning.
void BNG.Damageable.DealDamage | ( | float | damageAmount | ) |
void BNG.Damageable.DestroyThis | ( | ) |
List<GameObject> BNG.Damageable.ActivateGameObjectsOnDeath |
List<Collider> BNG.Damageable.DeactivateCollidersOnDeath |
List<GameObject> BNG.Damageable.DeactivateGameObjectsOnDeath |
float BNG.Damageable.DestroyDelay = 0f |
How long to wait before destroying this objects
bool BNG.Damageable.DestroyOnDeath = true |
Destroy this object on Death? False if need to respawn.
float BNG.Damageable.Health = 100 |
bool BNG.Damageable.RemoveBulletHolesOnDeath = true |
Remove any decals that were parented to this object on death.
Useful for clearing unused decals.
bool BNG.Damageable.Respawn = false |
If true the object will be reactivated according to RespawnTime
float BNG.Damageable.RespawnTime = 10f |
If Respawn true, this gameObject will reactivate after RespawnTime.
In seconds.