inst.lives_left = 9
inst.components.childspawner.onchildkilledfn = function(inst, child)
inst.lives_left = inst.lives_left - 1
if inst.lives_left <= 0 then
inst.components.childspawner:StopRegen()
inst.components.childspawner:StopSpawning()
inst:RemoveComponent("childspawner")
end
end
这是游戏里的一段脚本,自己玩单机想修改些数据,作为完全的门外汉,以往的修改都是照搬旧版本大佬写的帖子,新版本里没有。
求翻译一下,照搬了辣么多数据,多少能明白一些。
直白点,别那么专业,我只为了玩玩单机游戏。