2023-12-18 08:37:46 -05:00
|
|
|
local interactable = false
|
|
|
|
|
|
|
|
function onSave() return JSON.encode(interactable) end
|
|
|
|
|
|
|
|
function onLoad(savedData)
|
|
|
|
if savedData and savedData ~= "" then
|
2023-12-18 18:50:21 -05:00
|
|
|
interactable = JSON.decode(savedData)
|
2023-12-18 08:37:46 -05:00
|
|
|
end
|
|
|
|
self.interactable = interactable
|
|
|
|
end
|
|
|
|
|
|
|
|
function setState(state)
|
|
|
|
interactable = state
|
|
|
|
self.interactable = interactable
|
|
|
|
end
|