Exemplo n.º 1
0
    static int ReadDouble(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("Framework.NetModule.LuaBuffer.ReadDouble");
#endif
        try
        {
            ToLua.CheckArgsCount(L, 1);
            Framework.NetModule.LuaBuffer obj = (Framework.NetModule.LuaBuffer)ToLua.CheckObject <Framework.NetModule.LuaBuffer>(L, 1);
            double o = obj.ReadDouble();
            LuaDLL.lua_pushnumber(L, o);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }