‘ ö function init(self) -- Add initialization code here -- Learn more: https://defold.com/manuals/script/ -- Remove this function if not needed end function final(self) -- Add finalization code here -- Learn more: https://defold.com/manuals/script/ -- Remove this function if not needed end function update(self, dt) -- Add update code here -- Learn more: https://defold.com/manuals/script/ -- Remove this function if not needed end function on_message(self, message_id, message, sender) if message_id == hash("set_scores") then gui.set_text(gui.get_node("score"), string.format("%06d", message.score)) end if message_id == hash("hide") then gui.set_enabled(gui.get_node("score"), false) end if message_id == hash("show") then gui.set_enabled(gui.get_node("score"), true) end end function on_input(self, action_id, action) -- Add input-handling code here. The game object this script is attached to -- must have acquired input focus: -- -- msg.post(".", "acquire_input_focus") -- -- All mapped input bindings will be received. Mouse and touch input will -- be received regardless of where on the screen it happened. -- Learn more: https://defold.com/manuals/input/ -- Remove this function if not needed end function on_reload(self) -- Add reload-handling code here -- Learn more: https://defold.com/manuals/hot-reload/ -- Remove this function if not needed end @main/score.gui_script"