Example #1
0
    public static int IsGoogleGameLogined(IntPtr L)
    {
        int       count = LuaDLL.lua_gettop(L);
        const int nRet  = 1;

        if (count == 0)
        {
            bool isGoogleLogined = PlatformControl.IsGoogleGameLogined();
            LuaScriptMgr.Push(L, isGoogleLogined);
        }
        else
        {
            LogParamError("IsGoogleGameLogined", count);
            LuaScriptMgr.Push(L, false);
        }
        return(GameUtilWrap.CheckReturnNum(L, count, nRet));
    }