![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
A collider that can register damage agaisnt the character. More...
Public Member Functions | |
virtual void | Damage (int amount) |
Pass damage of the given amount to the CharacterHealth script. More... | |
virtual void | Damage (DamageInfo info) |
Pass damage from the given hazard to the CharacterHealth script. More... | |
override void | Validate (PlatformerProMonoBehaviour myTarget) |
Show validation details. More... | |
Protected Attributes | |
CharacterHealth | health |
Cached reference to the characters health script. More... | |
Properties | |
override string | Header [get] |
Gets the header string used to describe the component. More... | |
virtual Character | Character [get, set] |
Gets the character reference. More... | |
virtual bool | IsInvulnerable [get] |
Is the character currently invulnerable? More... | |
virtual IMob | Mob [get] |
Get the mobile (charater) that this hurt box belongs too. Can return null. More... | |
![]() | |
virtual string | Header [get] |
Gets the header string used to describe the component. More... | |
virtual string | DocLink [get] |
Gets a link to documentation site. More... | |
virtual string | VideoLink [get] |
Gets a link to a youtube video. More... | |
virtual string | Deprecated [get] |
If non-null this component is deprecated. The string shows a message indicating how it should be replaced. More... | |
![]() | |
IMob | Mob [get] |
Get the mobile (charater or enemy) that this hurt box belongs too. Can return null. More... | |
![]() | |
Character | Character [get, set] |
Get the character. More... | |
A collider that can register damage agaisnt the character.
|
virtual |
Pass damage from the given hazard to the CharacterHealth script.
info | Information about the damage such as the hazard causing the damage. |
Implements PlatformerPro.IHurtable.
Reimplemented in PlatformerPro.CharacterBlockingHurtBox.
|
virtual |
Pass damage of the given amount to the CharacterHealth script.
amount | Amount. |
|
virtual |
Show validation details.
myTarget |
Reimplemented from PlatformerPro.PlatformerProMonoBehaviour.
|
protected |
Cached reference to the characters health script.
|
getset |
Gets the character reference.
The character.
|
get |
Gets the header string used to describe the component.
The header.
|
get |
Is the character currently invulnerable?
The character.
|
get |
Get the mobile (charater) that this hurt box belongs too. Can return null.