Skip to content

Commit

Permalink
修GAME._refresh流程问题导致mechLib函数都没注册上
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Oct 1, 2024
1 parent 9531162 commit f7aaa94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/game/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@ local GAME={
GAME.camera.moveSpeed=12

function GAME._refresh()
mechLib=TABLE.newResourceTable(require'mechanicLib',function(path) return FILE.load(path,'-lua') end)
regFuncLib(mechLib,'mechLib')
regFuncToStr,regStrToFunc={},{}
modeLib={}
mechLib=TABLE.newResourceTable(require'mechanicLib',function(path) return FILE.load(path,'-lua') end)
regFuncLib(mechLib,'mechLib')
end
GAME._refresh()

Expand Down

0 comments on commit f7aaa94

Please sign in to comment.