![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
Like a normal hazard but it has an enemy reference and tells the enemy when it hit the character. More...
Protected Member Functions | |
override void | Init () |
Initialise this instance. More... | |
override void | DoHit (Collider2D other) |
Do the actual hit. More... | |
Protected Attributes | |
Enemy | enemy |
CharacterHurtBox | deferredHit |
Store the hit ready for processing at end of frame (note wont hit multiple enemies). More... | |
![]() | |
bool | hasFired |
Has the damage happened (for one shot types). More... | |
DamageInfo | damageInfo |
Cache the damage info to avoid allocation. More... | |
Additional Inherited Members | |
![]() | |
int | damageAmount |
Amount of damage dealt by this object. More... | |
DamageType | damageType |
What type of damage does this hazard cause? More... | |
bool | oneShot |
Should the damage be caused once, or should it be sent every frame. More... | |
bool | damageCharacters = true |
Does this hazard cause damage to characters? More... | |
bool | damageEnemies |
Does this hazard also cause damage to enemies? More... | |
Like a normal hazard but it has an enemy reference and tells the enemy when it hit the character.
|
protectedvirtual |
Do the actual hit.
other | Other. |
Reimplemented from PlatformerPro.Hazard.
Reimplemented in PlatformerPro.EnemyHitBox.
|
protectedvirtual |
Initialise this instance.
Reimplemented from PlatformerPro.Hazard.
|
protected |
Store the hit ready for processing at end of frame (note wont hit multiple enemies).
|
protected |