mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-15 00:11:55 +07:00
30 lines
590 B
Lua
30 lines
590 B
Lua
local M = {}
|
|
|
|
---@param go gobject
|
|
function M:on_start(go)
|
|
the_debug:trace("sample_08: on_start")
|
|
end
|
|
|
|
---@param go gobject
|
|
function M:on_update(go)
|
|
end
|
|
|
|
---@param go gobject
|
|
---@param type string
|
|
---@param event touchable_base_evt | touchable_mouse_evt
|
|
function M:on_event(go, type, event)
|
|
if type == "touchable.mouse_evt" then
|
|
the_debug:trace(string.format(
|
|
"scene %q touched(%s %s)",
|
|
go.named and go.named.name or "---",
|
|
event.type,
|
|
event.button))
|
|
end
|
|
end
|
|
|
|
---@param go gobject
|
|
function M:on_shutdown(go)
|
|
end
|
|
|
|
return M
|