Esempio n. 1
0
    static int Authorize(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(SDKManager), typeof(cn.sharesdk.unity3d.PlatformType)))
            {
                SDKManager obj = (SDKManager)ToLua.ToObject(L, 1);
                cn.sharesdk.unity3d.PlatformType arg0 = (cn.sharesdk.unity3d.PlatformType)ToLua.ToObject(L, 2);
                obj.Authorize(arg0);
                return(0);
            }
            else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(SDKManager), typeof(int)))
            {
                SDKManager obj  = (SDKManager)ToLua.ToObject(L, 1);
                int        arg0 = (int)LuaDLL.lua_tonumber(L, 2);
                obj.Authorize(arg0);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: SDKManager.Authorize"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }