补丁流程
1.using XLua;
2.打标签 [Hotfix]
3.编写lua脚本
xlua.hotfix(classname,methodname,function(self)
--方法代码
end)
坑:bullectAudio取不到值
private AudioSource bullectAudio;
private属性不能直接用,需要加xlua.private_accessible(calss)
补丁流程
1.using XLua;
2.打标签 [Hotfix]
3.编写lua脚本
xlua.hotfix(classname,methodname,function(self)
--方法代码
end)
坑:bullectAudio取不到值
private AudioSource bullectAudio;
private属性不能直接用,需要加xlua.private_accessible(calss)