2017-01-06から1日間の記事一覧
以下のようなコードで詰まった。 -- クラス定義-- 2点を表すオブジェクトVector2 = {}-- コンストラクタfunction Vector2.new(x, y) local this = { x = x, y = y } -- メソッド定義 --this.Function = function() --end return thisend TablePos = Vector2.…
以下のようなコードで詰まった。 -- クラス定義-- 2点を表すオブジェクトVector2 = {}-- コンストラクタfunction Vector2.new(x, y) local this = { x = x, y = y } -- メソッド定義 --this.Function = function() --end return thisend TablePos = Vector2.…