HitBoxes are triggers that Deal/Revieve Damage or enter areas(tile)
DealDamage require Damage MonoBehaviour
EnterAreas require Collider2D to be BoxCollider2D
More...
HitBoxes are triggers that Deal/Revieve Damage or enter areas(tile)
DealDamage require Damage MonoBehaviour
EnterAreas require Collider2D to be BoxCollider2D
◆ GetCollisionMask()
LayerMask UnityPlatformer.HitBox.GetCollisionMask |
( |
| ) |
|
|
inline |
Get final collision mask, taking into consideration useGlobalMask flags
◆ IsDisabled()
bool UnityPlatformer.HitBox.IsDisabled |
( |
| ) |
|
|
inline |
Return if the HitBox is disabled base on enabledOnStates
◆ OnTriggerEnter2D()
void UnityPlatformer.HitBox.OnTriggerEnter2D |
( |
Collider2D |
o | ) |
|
|
inline |
I'm a DealDamage, o is RecieveDamage, then Deal Damage to it's owner!
◆ Start()
void UnityPlatformer.HitBox.Start |
( |
| ) |
|
|
inline |
check missconfigurations and initialize
◆ characterState
Combo to check character state
◆ collisionMask
LayerMask UnityPlatformer.HitBox.collisionMask |
Who can deal damage to me?
Only used when type=HitBoxType.RecieveDamage.
◆ dealDamageToSelf
bool UnityPlatformer.HitBox.dealDamageToSelf = false |
Can i deal damage to myself?
◆ owner
◆ part
◆ type
HitBoxType UnityPlatformer.HitBox.type = HitBoxType.DealDamage |
◆ useGlobalMask
bool UnityPlatformer.HitBox.useGlobalMask = true |
The documentation for this class was generated from the following file:
- Assets/UnityPlatformer/Scripts/Characters/Health/HitBox.cs