![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
A special movement which takes control while character is lokced on a rail platform. More...
Public Member Functions | |
override Movement | Init (Character character, MovementVariable[] movementData) |
Initialise the mvoement with the given movement data. More... | |
override bool | WantsSpecialMove () |
Gets a value indicating whether this movement wants to do a special move. More... | |
override void | DoMove () |
Moves the character. More... | |
virtual bool | ShouldBeAttachedToRail (RailPlatform rail) |
Start the rail movement More... | |
override void | GainControl () |
Called when the movement gets control. Typically used to do initialisation of velocity and the like. More... | |
override void | LosingControl () |
Called when the movement loses control. Override to do any reset type actions. More... | |
![]() | |
virtual void | DoSpecialMove () |
Start the special mvoe 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 | |
Animator | myAnimator |
Cached reference to the animator. More... | |
RailPlatform | rail |
Current rail. 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 AnimationState | AnimationState [get] |
Gets the animation state that this movement wants to set. More... | |
override int | FacingDirection [get] |
Gets the facing direction. More... | |
override bool | ShouldApplyGravity [get] |
Shoulds the apply gravity. More... | |
override RaycastType | ShouldDoBaseCollisions [get] |
Gets the should do base collisions. More... | |
![]() | |
new static MovementInfo | Info [get] |
Static movement info used by the editor. 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 special movement which takes control while character is lokced on a rail platform.
override void PlatformerPro.SpecialMovement_Rail.DoMove | ( | ) |
Moves the character.
override void PlatformerPro.SpecialMovement_Rail.GainControl | ( | ) |
Called when the movement gets control. Typically used to do initialisation of velocity and the like.
override Movement PlatformerPro.SpecialMovement_Rail.Init | ( | Character | character, |
MovementVariable[] | movementData | ||
) |
override void PlatformerPro.SpecialMovement_Rail.LosingControl | ( | ) |
Called when the movement loses control. Override to do any reset type actions.
|
virtual |
Start the rail movement
rail | The rail platform. |
|
virtual |
Gets a value indicating whether this movement wants to do a special move.
true
if this instance wants control; otherwise, false
.
Reimplemented from PlatformerPro.SpecialMovement.
|
protected |
Cached reference to the animator.
|
protected |
Current rail.
|
get |
Gets the animation state that this movement wants to set.
|
get |
Gets the facing direction.
The facing direction.
|
staticget |
Static movement info used by the editor.
|
get |
Shoulds the apply gravity.
true
, if apply gravity was shoulded, false
otherwise.
|
get |
Gets the should do base collisions.
The should do base collisions.