![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
A wrapper class for handling the characters movement (or lack thereof) when the character is dying. More...
Public Member Functions | |
virtual void | Damage (DamageInfo info, bool isDeath) |
Start the damage movement. More... | |
![]() | |
sealed override Movement | Init (Character character) |
Initialise this movement. More... | |
bool | IsMovementDataDifferent (MovementVariable[] originalMovementData) |
Determines whether this instances movement data is different from the supplied originalMovementData. More... | |
Protected Attributes | |
DamageInfo | damageInfo |
Information about the damage sustained. More... | |
bool | isDeath |
Is this being used as a death movement. More... | |
![]() | |
Movement | implementation |
The class that will do the movement. More... | |
string | movementType |
The type of movement as a string. More... | |
MovementVariable[] | movementData |
Data that should be applied to the movement type on init. More... | |
Properties | |
new static MovementInfo | Info [get] |
Static movement info used by the editor. More... | |
override bool | ShouldApplyGravity [get] |
For damage the default is to not apply gravity. More... | |
override int | AnimationPriority [get] |
Gets the priority of the animation state that this movement wants to set. Death and damage need higher defaults. More... | |
![]() | |
virtual string | MovementType [get, set] |
The type of movement as a string. More... | |
virtual MovementVariable[] | MovementData [get, set] |
Data that should be applied to the movement type on init. More... | |
new static MovementInfo | Info [get] |
Static movement info used by the editor. More... | |
override bool | Enabled [get, set] |
A custom enable which base movements can use to pass on enable values. More... | |
override Movement | Implementation [get] |
Gets the underlying implementation. More... | |
A wrapper class for handling the characters movement (or lack thereof) when the character is dying.
|
virtual |
Start the damage movement.
info | Info. |
isDeath | Is the movement being used for death. |
Reimplemented in PlatformerPro.DamageMovement_RandomAnimation, PlatformerPro.DamageMovement_ExplosiveForce, PlatformerPro.DamageMovement_AnimationWithBobble, PlatformerPro.DamageMovement_AnimationSyncPerDamageType, PlatformerPro.DamageMovement_AnimationPerDamageType, and PlatformerPro.DamageMovement_AnimationOnly.
|
protected |
Information about the damage sustained.
|
protected |
Is this being used as a death movement.
|
get |
Gets the priority of the animation state that this movement wants to set. Death and damage need higher defaults.
|
staticget |
Static movement info used by the editor.
|
get |
For damage the default is to not apply gravity.