platformer
|
Crounch More...
Public Member Functions | |
override void | OnEnable () |
keep Character.actions in sync More... | |
void | OnActionDown (string _action) |
input.onActionDown More... | |
void | OnActionUp (string _action) |
input.onActionUp More... | |
override int | WantsToUpdate (float delta) |
crounch if onground and no ladder below More... | |
override void | PerformAction (float delta) |
Do your action here. More... | |
override PostUpdateActions | GetPostUpdateActions () |
Return what to do next. More... | |
![]() | |
void | Reset () |
Try to set character & input from parent nodes More... | |
virtual void | OnDisable () |
keep Character.actions in sync More... | |
virtual void | GainControl (float delta) |
Called (once) when this action is going to be 'PerformAction' for first time More... | |
virtual void | LoseControl (float delta) |
Called (once) when other action 'WantsToUpdate' or this action don't anymore More... | |
Public Attributes | |
String | action = "Crounch" |
Input action name More... | |
![]() | |
Character | character |
Target character that will be affected by this movement More... | |
PlatformerInput | input |
Input to listen More... | |
Action | onGrainControl |
Callback when this movement WantsToUpdate and has highest priority. More... | |
Action | onLoseControl |
Callback when this movement don't WantsToUpdate or another movement has higher priority More... | |
Crounch
|
inlinevirtual |
Return what to do next.
By default should be: APPLY_GRAVITY | WORLD_COLLISIONS
Implements UnityPlatformer.CharacterAction.
|
inline |
input.onActionDown
|
inline |
input.onActionUp
|
inlinevirtual |
keep Character.actions in sync
Reimplemented from UnityPlatformer.CharacterAction.
|
inlinevirtual |
Do your action here.
Implements UnityPlatformer.CharacterAction.
|
inlinevirtual |
crounch if onground and no ladder below
Implements UnityPlatformer.CharacterAction.
String UnityPlatformer.CharacterActionCrounch.action = "Crounch" |
Input action name