#unity/日常积累 这个是监听,Unity打印事件的; ![[Pasted image 20220426163751.png]] 将这个方法,通过action委托,发出去,给lua的; ![[Pasted image 20220426164037.png]] 其中的LogTypeInfo是自定义类; ![[Pasted image 20220426164431.png]] 定义如图所示: ![[Pasted image 20220426164501.png]] 这里也是有做初始化操作的; ![[Pasted image 20220426164630.png]] lua端的绑定: ![[Pasted image 20220426164711.png]] 是会发送一个事件; ![[Pasted image 20220426164738.png]] 这是接收事件的地方: ![[Pasted image 20220426164826.png]] 处理接受到的数据,分类; ![[Pasted image 20220426164906.png]]