I created ObjectA.lua.
Then I created ObjectB.lua.
In ObjectB.lua::
require("ObjectA")
objB = ObjectA.createSomething();
--Everything is Fine.
Then in SceneA.lua
require("ObjectB")
local Obj = ObjectB.objB or ObjectB.GetInstance()
camera:insert(Obj)
--And I got the error....
--"attempt to local index 'obj'(a nil value) "
--"'insert'(Proxy expected, got nil)"
I am new to lua. I wonder that lua is limit inheritance process??
[import]uid: 65906 topic_id: 15063 reply_id: 315063[/import]