AnimationController
new AnimationController(actor)
- Source:
Parameters:
| Name |
Type |
Description |
actor |
Actor
|
绑定的角色对象
|
Members
active :boolean
- Source:
Type:
idleMotion :string
- Source:
Type:
moveMotion :string
- Source:
Type:
playing :boolean
- Source:
Type:
state :string
- Source:
Type:
Methods
bindAnimation(animationopt)
- Source:
Parameters:
| Name |
Type |
Attributes |
Description |
animation |
Animation
|
<optional>
|
动画实例
|
getCurrentMotionName()
- Source:
loadData(motions)
- Source:
Parameters:
| Name |
Type |
Description |
motions |
Object
|
|
playMotion(motionName, speed) → {Animation|undefined}
- Source:
Parameters:
| Name |
Type |
Default |
Description |
motionName |
string
|
|
动作名称
|
speed |
number
|
1
|
播放速度
|