S.A.P.S V0.4.0
A virtual reality stealth action game
 
Loading...
Searching...
No Matches
Hurtbox Class Reference

Takes damage from a Hitbox component when intersecting. Requires a trigger collider. More...

Inheritance diagram for Hurtbox:

Public Attributes

UnityEvent< int > onHealthUpdate = new()
 
UnityEvent< GameObject > onDie = new()
 

Properties

bool IsAlive [get]
 
int Health [get, set]
 

Detailed Description

Takes damage from a Hitbox component when intersecting. Requires a trigger collider.

Member Data Documentation

◆ onDie

UnityEvent<GameObject> Hurtbox.onDie = new()

◆ onHealthUpdate

UnityEvent<int> Hurtbox.onHealthUpdate = new()

Property Documentation

◆ Health

int Hurtbox.Health
getset

◆ IsAlive

bool Hurtbox.IsAlive
get

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