QQ蚊子湯 发表于 2017-2-22 13:33
你之前解這一題的時候不是就會加實例變量了嗎~
https://rpg.blue/forum.php?mod=viewthread&tid=398881& ...
class Game_Actor
attr_accessor :description
def description
@description || actor.description
end
end
| 欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X5.0 |