public static int ShowPromotion(IntPtr L) { int count = LuaDLL.lua_gettop(L); const int nRet = 0; if (count == 0) { PlatformControl.ShowPromotion(); } else if (count == 1 && LuaScriptMgr.CheckTypes(L, 1, typeof(LuaFunction))) { var callback = LuaScriptMgr.GetLuaFunction(L, 1); PlatformControl.ShowPromotion(callback); } else { LogParamError("ShowPromotion", count); } return(GameUtilWrap.CheckReturnNum(L, count, nRet)); }