|
城市大乱斗详细修改教程
破解方式:修改dll文件
工具:dnspy/reflector
step1 把managed里的dll导入到dnspy/reflector中
step2 选择方法搜索, 查找RPCReduceHP()方法
step3 把方法中的内容删除掉,只留下一个空的方法体
- private void RPCReduceHP(PhotonPlayer attackerPlayer, int attackerCharacterID, int damage, AttackMethod attackMethod, bool isFighting)
[color=rgb(51, 102, 153) !important]复制代码
step4 添加一个bool类型的类成员
[color=rgb(51, 102, 153) !important]复制代码
step5 新建一个OnGUI()方法
- viod OnGUI(){
- if(GUI.Button(new Rect(0,0,100,100),"button")){
- bWudi=true;
- }
- }
[color=rgb(51, 102, 153) !important]复制代码
这样通过一个button来控制是否开启无敌,可以过新手教程里全局无敌的bug
|
|
|