YN006-复活石无限使用(主角永生)
代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 六.复活石无限使用(主角永生) 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/resurrectionstone.lua文件,在inst:Remove()的下一行插入以下内容: SpawnPrefab("resurrectionstone").Transform:SetPosition(inst.Transform:GetWorldPosition()) 主角复活后,再点身下的复活石,可使复活石再次完整