[]如何用代码触发点击事件?
比如sprite1注册了点击事件: this.sprite1.on(Laya.Event.CLICK, this, this.sprite1CallBack); 怎样不用点击,而用代码去触发? 是 this.sprite1.event(Laya.Event.CLICK) 这样吗?
没有找到相关结果
已邀请:
要回复问题请先登录
3 个回复
chasel
赞同来自:
let event = new Laya.Event()
button.event(Laya.Event.CLICK, event.setTo(Laya.Event.CLICK, button, button));
东西
赞同来自:
Aar0n
赞同来自: