以Character.lua 為例子,表格Character 定義了基本的屬性,__index 則被用來定義預設值。 ... Character.metatable ) end -- Add a method to the object function ...
確定! 回上一頁