C# 클래스 UnityPlatformer.CharacterAnimator

Animator class Use all data available at Character & cia to know what to play
상속: UnityEngine.MonoBehaviour, IUpdateEntity
파일 보기 프로젝트 열기: llafuente/unity-platformer

공개 프로퍼티들

프로퍼티 타입 설명
attackMelee string
character Character
crounchIdle string
crounchWalk string
fenceDown string
fenceIdle string
fenceLeft string
fenceRight string
fenceUp string
grabbing string
idle string
jump string
ladder string
maxSlope float
pulling string
pushing string
rope string
rotateOnSlopes bool
slipping string
swimming string
walk string
wallsliding string

공개 메소드들

메소드 설명
GetAnimationLength ( string animation ) : float

Get animation length in seconds

LatePlatformerUpdate ( float delta ) : void

do nothing

OnAreaChange ( Areas before, Areas after ) : void

Not used atm

OnDisable ( ) : void

sync UpdateManager

OnEnable ( ) : void

sync UpdateManager

OnInjuredCharacter ( Damage dt, CharacterHealth h, Character to ) : void

Not used atm

OnStateChange ( States before, States after ) : void

Not used atm

PlatformerUpdate ( float delta ) : void

Calculate what animation to play and do it!

Play ( string animation ) : void

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

PlaybackSpeed ( float speed ) : void

Set playback speed. 1: normal\n 0-1: slow-motion\n >1: fast-motion

Start ( ) : void

Start listening

StartPlayback ( ) : void

Continue playing current animation

StopPlayback ( ) : void

Stop current animation

메소드 상세

GetAnimationLength() 공개 추상적인 메소드

Get animation length in seconds
public abstract GetAnimationLength ( string animation ) : float
animation string
리턴 float

LatePlatformerUpdate() 공개 메소드

do nothing
public LatePlatformerUpdate ( float delta ) : void
delta float
리턴 void

OnAreaChange() 공개 메소드

Not used atm
public OnAreaChange ( Areas before, Areas after ) : void
before Areas
after Areas
리턴 void

OnDisable() 공개 메소드

sync UpdateManager
public OnDisable ( ) : void
리턴 void

OnEnable() 공개 메소드

sync UpdateManager
public OnEnable ( ) : void
리턴 void

OnInjuredCharacter() 공개 메소드

Not used atm
public OnInjuredCharacter ( Damage dt, CharacterHealth h, Character to ) : void
dt Damage
h CharacterHealth
to Character
리턴 void

OnStateChange() 공개 메소드

Not used atm
public OnStateChange ( States before, States after ) : void
before States
after States
리턴 void

PlatformerUpdate() 공개 메소드

Calculate what animation to play and do it!
public PlatformerUpdate ( float delta ) : void
delta float
리턴 void

Play() 공개 추상적인 메소드

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
public abstract Play ( string animation ) : void
animation string
리턴 void

PlaybackSpeed() 공개 추상적인 메소드

Set playback speed. 1: normal\n 0-1: slow-motion\n >1: fast-motion
public abstract PlaybackSpeed ( float speed ) : void
speed float
리턴 void

Start() 공개 메소드

Start listening
public Start ( ) : void
리턴 void

StartPlayback() 공개 추상적인 메소드

Continue playing current animation
public abstract StartPlayback ( ) : void
리턴 void

StopPlayback() 공개 추상적인 메소드

Stop current animation
public abstract StopPlayback ( ) : void
리턴 void

프로퍼티 상세

attackMelee 공개적으로 프로퍼티

public string attackMelee
리턴 string

character 공개적으로 프로퍼티

Character
public Character character
리턴 Character

crounchIdle 공개적으로 프로퍼티

public string crounchIdle
리턴 string

crounchWalk 공개적으로 프로퍼티

public string crounchWalk
리턴 string

fenceDown 공개적으로 프로퍼티

public string fenceDown
리턴 string

fenceIdle 공개적으로 프로퍼티

public string fenceIdle
리턴 string

fenceLeft 공개적으로 프로퍼티

public string fenceLeft
리턴 string

fenceRight 공개적으로 프로퍼티

public string fenceRight
리턴 string

fenceUp 공개적으로 프로퍼티

public string fenceUp
리턴 string

grabbing 공개적으로 프로퍼티

public string grabbing
리턴 string

idle 공개적으로 프로퍼티

public string idle
리턴 string

jump 공개적으로 프로퍼티

public string jump
리턴 string

ladder 공개적으로 프로퍼티

public string ladder
리턴 string

maxSlope 공개적으로 프로퍼티

Max rotation slope, above this value it will be 0º
public float maxSlope
리턴 float

pulling 공개적으로 프로퍼티

public string pulling
리턴 string

pushing 공개적으로 프로퍼티

public string pushing
리턴 string

rope 공개적으로 프로퍼티

public string rope
리턴 string

rotateOnSlopes 공개적으로 프로퍼티

When a player is on a slope rotate the player the same angle?
public bool rotateOnSlopes
리턴 bool

slipping 공개적으로 프로퍼티

public string slipping
리턴 string

swimming 공개적으로 프로퍼티

public string swimming
리턴 string

walk 공개적으로 프로퍼티

public string walk
리턴 string

wallsliding 공개적으로 프로퍼티

public string wallsliding
리턴 string