platformer
|
TODO We need some kind of debounce / Use delay More...
Public Member Functions | |
override int | WantsToUpdate (float delta) |
On(Areas.Item) and item is usable by me and hit 'Use' action! More... | |
override void | PerformAction (float delta) |
Use the item, all logic is in the Item.Use More... | |
override PostUpdateActions | GetPostUpdateActions () |
REVIEW do default actions. but maybe should do nothing... More... | |
![]() | |
void | Reset () |
Try to set character & input from parent nodes More... | |
virtual void | OnEnable () |
keep Character.actions in sync 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 | |
Vector3 | characterOffset = new Vector3(0, 0, 0) |
Offset position More... | |
string | actionUse = "Use" |
Trigger input Action 'Use' More... | |
int | priority = 30 |
Action priority 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... | |
TODO We need some kind of debounce / Use delay
|
inlinevirtual |
REVIEW do default actions. but maybe should do nothing...
Implements UnityPlatformer.CharacterAction.
|
inlinevirtual |
Use the item, all logic is in the Item.Use
Implements UnityPlatformer.CharacterAction.
|
inlinevirtual |
On(Areas.Item) and item is usable by me and hit 'Use' action!
Implements UnityPlatformer.CharacterAction.
string UnityPlatformer.CharacterActionUseItem.actionUse = "Use" |
Trigger input Action 'Use'
Vector3 UnityPlatformer.CharacterActionUseItem.characterOffset = new Vector3(0, 0, 0) |
Offset position
int UnityPlatformer.CharacterActionUseItem.priority = 30 |
Action priority