我想修改一下文件,让饥荒主角挨打后无僵直,但不知道是哪个文件
饥荒吧
全部回复
仅看楼主
level 9
炫目风雷 楼主
求帮忙看看是不是这个
StandStill = Class(BehaviourNode, function(self, inst, startfn, keepfn)
BehaviourNode._ctor(self, "StandStill")
self.inst = inst
self.startfn = startfn
self.keepfn = keepfn
end)
function StandStill:Visit()
if self.status == READY then
if not self.startfn or self.startfn(self.inst) then
self.status = RUNNING
self.inst.components.locomotor:Stop()
else
self.status = FAILED
end
end
if self.status == RUNNING then
if not self.keepfn or self.keepfn(self.inst) then
-- yep! standing here is preeeetty great.
self.inst.components.locomotor:Stop()
else
self.status = FAILED
end
self:Sleep(.5)
end
end
2018年11月23日 13点11分 1
level 15
[滑稽]游戏就是这么设计的 好端端的为什么改
2018年11月23日 13点11分 2
level 9
炫目风雷 楼主
求大佬帮忙,看看是哪个文件
2018年11月23日 13点11分 3
level 9
炫目风雷 楼主
求帮忙 谢谢啦[哈哈]
2018年11月23日 13点11分 4
level 9
看铥矿帽护盾代码 那个挨打没僵直
2018年11月23日 13点11分 5
谢谢谢谢,万分感谢[哈哈]
2018年11月23日 13点11分
1