[LayaAirIDE 2.0]调用动画结束on方法,报错this.zombieAnimator.on is not a function
创建官方示例3D
Laya.Sprite3D.load("res/threeDimen/skinModel/Zombie/Zombie.lh", Laya.Handler.create(this, function(zombie:Laya.Sprite3D):void {
scene.addChild(zombie);
this.zombieAnimator = (zombie.getChildAt(0) as Laya.Sprite3D).getComponent(Laya.Animator) as Laya.Animator;//获取Animator动画组件
this.zombieAnimator.on(Laya.Event.COMPLETE, this, this.onAniComplete);
this.loadUI();
}));
Laya.Sprite3D.load("res/threeDimen/skinModel/Zombie/Zombie.lh", Laya.Handler.create(this, function(zombie:Laya.Sprite3D):void {
scene.addChild(zombie);
this.zombieAnimator = (zombie.getChildAt(0) as Laya.Sprite3D).getComponent(Laya.Animator) as Laya.Animator;//获取Animator动画组件
this.zombieAnimator.on(Laya.Event.COMPLETE, this, this.onAniComplete);
this.loadUI();
}));
没有找到相关结果
已邀请:
要回复问题请先登录
3 个回复
bpmf_d
赞同来自: 189*****185
189*****185
赞同来自:
189*****185
赞同来自: