![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
A special movement which plays the weild animation, and then sets an animator override. Because it sends events this movement cannot be selected from drop down and must be added directly. 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 | DoSpecialMove () |
Start the special mvoe More... | |
override bool | ForceMaintainControl () |
If this is true then the movement wants to maintain control of the character even if default transition conditions suggest it shouldn't. 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... | |
Public Attributes | |
string | overrideName |
Name of the animation override to set. More... | |
int | actionButton |
Which action button triggers weilding. More... | |
Movement[] | weaponMovements |
List of movements to enable when weapon is weilded. More... | |
Movement[] | nonWeaponMovements |
List of movements to disable when weapon is weilded. More... | |
Protected Member Functions | |
virtual void | OnWeildedWeapon () |
Raises the weilded weapon event. More... | |
Protected Attributes | |
bool | weildActive |
Are we weilding this weapon? More... | |
bool | weildStarted |
Have we started a weild More... | |
CharacterEventArgs | args |
Cached event arguments. More... | |
Animator | myAnimator |
Cached reference to the animator. 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] |
Human readable name. More... | |
override AnimationState | AnimationState [get] |
Gets the animation state that this movement wants to set. 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... | |
Events | |
System.EventHandler< CharacterEventArgs > | WeildedWeapon |
Event for weilding a weapon, use this to do things like enable weapon attacks. More... | |
A special movement which plays the weild animation, and then sets an animator override. Because it sends events this movement cannot be selected from drop down and must be added directly.
|
virtual |
Start the special mvoe
Reimplemented from PlatformerPro.SpecialMovement.
override bool PlatformerPro.SpecialMovement_WeildWeapon.ForceMaintainControl | ( | ) |
If this is true then the movement wants to maintain control of the character even if default transition conditions suggest it shouldn't.
override Movement PlatformerPro.SpecialMovement_WeildWeapon.Init | ( | Character | character, |
MovementVariable[] | movementData | ||
) |
|
protectedvirtual |
Raises the weilded weapon event.
|
virtual |
Gets a value indicating whether this movement wants to do a special move.
Reimplemented from PlatformerPro.SpecialMovement.
int PlatformerPro.SpecialMovement_WeildWeapon.actionButton |
Which action button triggers weilding.
|
protected |
Cached event arguments.
|
protected |
Cached reference to the animator.
Movement [] PlatformerPro.SpecialMovement_WeildWeapon.nonWeaponMovements |
List of movements to disable when weapon is weilded.
string PlatformerPro.SpecialMovement_WeildWeapon.overrideName |
Name of the animation override to set.
Movement [] PlatformerPro.SpecialMovement_WeildWeapon.weaponMovements |
List of movements to enable when weapon is weilded.
|
protected |
Are we weilding this weapon?
|
protected |
Have we started a weild
|
get |
Gets the animation state that this movement wants to set.
|
staticget |
Human readable name.
Human readable description.
Static movement info used by the editor.
System.EventHandler<CharacterEventArgs> PlatformerPro.SpecialMovement_WeildWeapon.WeildedWeapon |
Event for weilding a weapon, use this to do things like enable weapon attacks.