[]Laya.Handler为什么注册不成功?
this.scrollView.mouseHandler = Laya.Handler.create(this,this.onScrollMouse)
this.scrollView.mouseHandler = new Laya.Handler(this, this.onScrollMouse);我在scrollView中有个mouseHandler的Laya.Handler变量,想直接注册到这个变量上,但是两种方式都没有成功
this.scrollView.mouseHandler = new Laya.Handler(this, this.onScrollMouse);我在scrollView中有个mouseHandler的Laya.Handler变量,想直接注册到这个变量上,但是两种方式都没有成功
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
Laya_XS
赞同来自: yangwm
你用new Laya.Handler 也可以解决你的问题。