![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
Like a normal enemy hazard but it can be enabled and disabled. More...
Public Member Functions | |
virtual void | Enable (float enableTime, float disableTime) |
Start the hit. More... | |
virtual void | ForceStop () |
Forces the attack to finish. More... | |
Public Attributes | |
Collider2D | myCollider |
Reference to collider. More... | |
![]() | |
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... | |
Protected Member Functions | |
override void | DoHit (Collider2D other) |
Do the actual hit. More... | |
virtual IEnumerator | DoEnable (float enableTime, float disableTime) |
Turn on the hit box. More... | |
![]() | |
override void | Init () |
Initialise this instance. More... | |
Protected Attributes | |
float | hitTimer |
The hit timer. More... | |
![]() | |
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... | |
Like a normal enemy hazard but it can be enabled and disabled.
|
protectedvirtual |
Turn on the hit box.
.
enableTime | Enable time. |
disableTime | Disable time. |
|
protectedvirtual |
|
virtual |
Start the hit.
|
virtual |
Forces the attack to finish.
|
protected |
The hit timer.
Collider2D PlatformerPro.EnemyHitBox.myCollider |
Reference to collider.