[]animation动画对象 无法增加鼠标事件
animation对象 在鼠标按下的时候,不会进入监听onDrag方法,把animation对象换成其他的sprit对象 就能正常 。 部分代码如下,动画能正常播放。
this.role = new Laya.Animation();
this.role.on(Laya.Event.MOUSE_DOWN, this, this.onDrag);
this.role = new Laya.Animation();
this.role.on(Laya.Event.MOUSE_DOWN, this, this.onDrag);
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
Aar0n
赞同来自: