![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
Wraps information about a (potentially) damage causing hit to the player. More...
Public Member Functions | |
DamageInfo (int amount, DamageType damageType, Vector2 direction) | |
Initializes a new instance of the PlatformerPro.DamageInfo class. More... | |
DamageInfo (int amount, DamageType damageType, Vector2 direction, IMob damageCauser) | |
Initializes a new instance of the PlatformerPro.DamageInfo class. More... | |
DamageInfo () | |
Initializes a new instance of the PlatformerPro.DamageInfo class. More... | |
Properties | |
virtual int | Amount [get, set] |
The raw damage amount. More... | |
virtual Vector2 | Direction [get, set] |
The direction to the object causing the damage. You can use this to provide specific damage types. More... | |
virtual DamageType | DamageType [get, set] |
The type of the damage. More... | |
IMob | DamageCauser [get, set] |
Optional info about who caused the damage. Null if unknown or damage causer was not a character. More... | |
Wraps information about a (potentially) damage causing hit to the player.
PlatformerPro.DamageInfo.DamageInfo | ( | int | amount, |
DamageType | damageType, | ||
Vector2 | direction | ||
) |
Initializes a new instance of the PlatformerPro.DamageInfo class.
amount | Amount. |
damageType | Damage type. |
direction | Direction. |
PlatformerPro.DamageInfo.DamageInfo | ( | int | amount, |
DamageType | damageType, | ||
Vector2 | direction, | ||
IMob | damageCauser | ||
) |
Initializes a new instance of the PlatformerPro.DamageInfo class.
amount | Amount. |
damageType | Damage type. |
direction | Direction. |
PlatformerPro.DamageInfo.DamageInfo | ( | ) |
Initializes a new instance of the PlatformerPro.DamageInfo class.
|
getset |
The raw damage amount.
|
getset |
Optional info about who caused the damage. Null if unknown or damage causer was not a character.
|
getset |
The type of the damage.
|
getset |
The direction to the object causing the damage. You can use this to provide specific damage types.