components/reader.lua
23456789101112131415161718
self.inst = inst
end)
function Reader:Read(book)
if book.components.book then
if book.components.book:OnRead(self.inst) then
if book.components.finiteuses then
book.components.finiteuses:Use(1)
end
return true
end
end
end
23456789101112131415
self.inst = inst
end)
function Reader:Read(book)
if book.components.book then
if book.components.book:OnRead(self.inst) then
if book.components.finiteuses then
book.components.finiteuses:Use(1)
end
return true
end
end
end