I’m wondering which of these ways is best:
Way #1
[lua]–main.lua
thisModule=require(“module1”)
thatModule=require(“module2”)
–Change scenes[/lua]
[lua]–scene1.lua
local thingy=thisModule.createSomething()
local something=thatModule.createSomethingElse()[/lua]
Way #2
[lua]–main.lua
–Change Scenes[/lua]
[lua]–scene1.lua
local thisModule=require(“module1”)
local thatModule=require(“module2”)
local thingy=thisModule.createSomething()
local something=thatModule.createSomethingElse()[/lua]
Is there an advantage to either way? I mean as in globally requiring things with main.lua (or something else) or locally requiring things inside each scene.
Is there a difference?
Caleb [import]uid: 147322 topic_id: 35110 reply_id: 335110[/import]