0
main.lua我如何通過模塊之間的物理對象的電暈SDK
local physics = require("physics")
local actor = require("actor")
physics.start()
//here physic is not nil
local a = Actor.new(200, 200, physics)
actor.lua
function Actor:new(x, y, physic)
//here physic is nil
end
我怎麼就不能通過物理對象到另一個模塊?
'function Actor.new(x,y,physic)' –
@EgorSkriptunoff這是對問題的評論,或者一個答案? – Schollii