![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
A collider that can register damage agaisnt the character but also supports blocking damage via a BlockAttack movement. More...
Public Member Functions | |
override void | Damage (DamageInfo info) |
Pass damage from the given hazard to the CharacterHealth script. More... | |
![]() | |
virtual void | Damage (int amount) |
Pass damage of the given amount to the CharacterHealth script. More... | |
override void | Validate (PlatformerProMonoBehaviour myTarget) |
Show validation details. More... | |
Public Attributes | |
int | actionButton |
Action button to use for block. More... | |
BlockDirection | blockDirection |
BlockAttack | block |
The block to use. Only used if ActionButton = -1; More... | |
List< DamageType > | unblockableTypes |
Static Public Attributes | |
const float | MIN_FOR_HIGH = 50.0f |
Angle at which an attack is considered high. More... | |
const float | MAX_FOR_LOW = 130.0f |
Angle at which attack is considered low. More... | |
Protected Member Functions | |
virtual bool | IsBlocking (DamageInfo damageInfo) |
Additional Inherited Members | |
![]() | |
CharacterHealth | health |
Cached reference to the characters health script. More... | |
![]() | |
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 but also supports blocking damage via a BlockAttack movement.
|
virtual |
Pass damage from the given hazard to the CharacterHealth script.
info | Information about the damage such as the hazard causing the damage. |
Reimplemented from PlatformerPro.CharacterHurtBox.
|
protectedvirtual |
int PlatformerPro.CharacterBlockingHurtBox.actionButton |
Action button to use for block.
BlockAttack PlatformerPro.CharacterBlockingHurtBox.block |
The block to use. Only used if ActionButton = -1;
BlockDirection PlatformerPro.CharacterBlockingHurtBox.blockDirection |
|
static |
Angle at which attack is considered low.
|
static |
Angle at which an attack is considered high.
List<DamageType> PlatformerPro.CharacterBlockingHurtBox.unblockableTypes |