void Start()
        {
            float a = Profile.ProfileBegin();

            ms_luaMgr      = LuaScriptMgr.Instance;
            ms_resourceMgr = ResourceMgr.Instance;
            ms_sceneMgr    = SceneMgr.Instance;
            ms_uiMgr       = UIMgr.Instance;
            ms_resourceMgr.Init();
            Profile.ProfileEnd("Mgr To Instance", a);

            a = Profile.ProfileBegin();
            ms_sceneMgr.Init();
            Profile.ProfileEnd("sceneMgr.Init", a);

            a = Profile.ProfileBegin();
            ms_uiMgr.Init();
            Profile.ProfileEnd("ms_uiMgr.Init", a);

            a = Profile.ProfileBegin();
            ms_luaMgr.Init();
            Profile.ProfileEnd("luaMgr.Init", a);
            ms_luaMgr.PrintLuaUsedMem();

            InitSDKEntry();
        }
 static int Init(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         WCG.UIMgr obj = (WCG.UIMgr)ToLua.CheckObject <WCG.UIMgr>(L, 1);
         obj.Init();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }