local Main = {}

local function LoadGlobalScript()
    require("Base/GlobalFunctions.lua")
end

function Main.Awake(luaRoot)

    CS.UnityEngine.Object.DontDestroyOnLoad(luaRoot)

    LoadGlobalScript()
    print("Main.Awake() Called ~")
    print("luaRoot.name -> " .. luaRoot.name)
    Main.luaRoot = luaRoot
end

function Main.Start(luaRoot)
    print("Main.Start Called ~")

    -- require("Base/UIHelper.lua"):OpenUI("UI/ZUILoginPanel.lua")
    require("Base/UIHelper.lua"):OpenUI("UI/MOD/ZUIMODPanel.lua")
end

function Main.OnDestroy()
    print("Main.OnDestroy Called ~")
end

print("main.lua Load Finish ... ...")

return Main