Свойство | Тип | Описание | |
---|---|---|---|
character | Character | ||
input | PlatformerInput | ||
onGrainControl | System.Action | ||
onLoseControl | System.Action |
Метод | Описание | |
---|---|---|
GainControl ( float delta ) : void |
Called (once) when this action is going to be 'PerformAction' for first time Can be use to enter states
|
|
GetPostUpdateActions ( ) : PostUpdateActions |
Return what to do next. By default should be: APPLY_GRAVITY | WORLD_COLLISIONS
|
|
LoseControl ( float delta ) : void |
Called (once) when other action 'WantsToUpdate' or this action don't anymore Can be used to exit states and clean up
|
|
OnDisable ( ) : void |
keep Character.actions in sync
|
|
OnEnable ( ) : void |
keep Character.actions in sync
|
|
PerformAction ( float delta ) : void |
Do your action here.
|
|
WantsToUpdate ( float delta ) : int |
Tells the character we want to take control * Positive numbers fight: Higher number wins * Negative numbers are used to ignore fight and force Character to call PerformAction, but! because it doesn't win the fight onLoseControl, onGrainControl and GetPostUpdateActions are ignored.\n NOTE can be used as a replace for UpdateManager.PlatformerUpdate
|
public abstract GetPostUpdateActions ( ) : PostUpdateActions | ||
Результат | PostUpdateActions |
public abstract PerformAction ( float delta ) : void | ||
delta | float | |
Результат | void |
public abstract WantsToUpdate ( float delta ) : int | ||
delta | float | |
Результат | int |