代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。
原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html
1
2九十四.牛醒着也可剪牛毛
3
4 用MT管理器打开游戏目录/assets/scripts/prefabs/beefalo文件,将下列内容:
5
6 inst.components.beard.canshavetest = function() if not inst.components.sleeper:IsAsleep() then return false, "AWAKEBEEFALO" end return true end
7
8 替换为:
9
10 inst.components.beard.canshavetest = function() if not inst.components.sleeper:IsAsleep() then return true, "AWAKEBEEFALO" end return true end
11
12 即可在牛醒着时也可剪牛毛