以Character.lua 為例子,表格Character 定義了基本的屬性,__index 則被用來定義 ... method to the object function Character:attack() print(string.format("%s %s ...
確定! 回上一頁