[LayaAir 2.0]Laya2.0 beta3 Animator 中的 on 事件 怎么没了
示例 里面 居然有
可是 实际上并没有啊。 没有 on 这个 函数了 . 要用什么代替啊?
var ani:Laya.Animator = hero.getChildAt(0).getComponent(Laya.Animator);
//监听默认动画完成后播放站立动画
ani.on(Laya.Event.COMPLETE,this,this.onAniComplete,[ani]);
可是 实际上并没有啊。 没有 on 这个 函数了 . 要用什么代替啊?
没有找到相关结果
已邀请:
要回复问题请先登录
3 个回复
腊笔小新
赞同来自:
Aar0n
赞同来自:
Laya_Xq
赞同来自:
if (0.6>(heroAni.getCurrentAnimatorPlayState(0)._normalizedTime-Math.floor(heroAni.getCurrentAnimatorPlayState(0)._normalizedTime))>0.5)
根据动画当前播放的百分比进行判断