16 lines
326 B
Plaintext
16 lines
326 B
Plaintext
local interactable = false
|
|
|
|
function onSave() return JSON.encode(interactable) end
|
|
|
|
function onLoad(savedData)
|
|
if savedData and savedData ~= "" then
|
|
interactable = JSON.decode(savedData)
|
|
end
|
|
self.interactable = interactable
|
|
end
|
|
|
|
function setState(state)
|
|
interactable = state
|
|
self.interactable = interactable
|
|
end
|