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