platformer
|
Animator class More...
Public Member Functions | |
virtual void | Start () |
Start listening More... | |
virtual void | OnEnable () |
sync UpdateManager More... | |
virtual void | OnDisable () |
sync UpdateManager More... | |
virtual void | PlatformerUpdate (float delta) |
Calculate what animation to play and do it! More... | |
virtual void | LatePlatformerUpdate (float delta) |
do nothing More... | |
abstract void | Play (string animation) |
Play animation More... | |
abstract void | PlaybackSpeed (float speed) |
Set playback speed. More... | |
abstract void | StopPlayback () |
Stop current animation More... | |
abstract void | StartPlayback () |
Continue playing current animation More... | |
abstract float | GetAnimationLength (string animation) |
Get animation length in seconds More... | |
virtual void | OnAreaChange (Areas before, Areas after) |
Not used atm More... | |
virtual void | OnInjuredCharacter (Damage dt, CharacterHealth h, Character to) |
Not used atm More... | |
virtual void | OnStateChange (States before, States after) |
Not used atm More... | |
Public Attributes | |
Character | character |
Character More... | |
bool | rotateOnSlopes = true |
When a player is on a slope rotate the player the same angle? More... | |
float | maxSlope = 70f |
Max rotation slope, above this value it will be 0º More... | |
string | fallLoop = "falling" |
string | fenceIdle = "fence_idle" |
string | fenceRight = "fence_right" |
string | fenceLeft = "fence_left" |
string | fenceUp = "fence_up" |
string | fenceDown = "fence_down" |
string | ladder = "ladder" |
string | rope = "rope" |
string | pushing = "pushing" |
string | pulling = "pulling" |
string | swimming = "swimming" |
string | wallsliding = "wallsliding" |
string | slipping = "slipping" |
string | grabbing = "grabbing" |
string | attackMelee = "attack_melee" |
string | jump = "jump" |
string | walk = "walk" |
string | idle = "idle" |
string | crounchWalk = "crounch_walk" |
string | crounchIdle = "crounch_idle" |
float | previousSpeed |
Previous speed changed when calling PlaybackSpeed, StopPlayback or StartPlayback More... | |
Animator class
Use all data available at Character & cia to know what to play
|
pure virtual |
Get animation length in seconds
Implemented in UnityPlatformer.CharacterAnimatorUnity.
|
inlinevirtual |
do nothing
Implements UnityPlatformer.IUpdateEntity.
|
inlinevirtual |
Not used atm
|
inlinevirtual |
sync UpdateManager
|
inlinevirtual |
sync UpdateManager
|
inlinevirtual |
Not used atm
|
inlinevirtual |
Not used atm
|
inlinevirtual |
Calculate what animation to play and do it!
Implements UnityPlatformer.IUpdateEntity.
|
pure virtual |
Play animation
NOTE this method should check that it's not currently playing the given animation, because each PlatformerUpdate you will recieve the same animation
Implemented in UnityPlatformer.CharacterAnimatorUnity.
|
pure virtual |
Set playback speed.
1: normal
0-1: slow-motion
>1: fast-motion
Implemented in UnityPlatformer.CharacterAnimatorUnity.
|
inlinevirtual |
Start listening
Reimplemented in UnityPlatformer.CharacterAnimatorUnity.
|
pure virtual |
Continue playing current animation
Implemented in UnityPlatformer.CharacterAnimatorUnity.
|
pure virtual |
Stop current animation
Implemented in UnityPlatformer.CharacterAnimatorUnity.
float UnityPlatformer.CharacterAnimator.maxSlope = 70f |
Max rotation slope, above this value it will be 0º
float UnityPlatformer.CharacterAnimator.previousSpeed |
Previous speed changed when calling PlaybackSpeed, StopPlayback or StartPlayback
bool UnityPlatformer.CharacterAnimator.rotateOnSlopes = true |
When a player is on a slope rotate the player the same angle?