add new strucn event

This commit is contained in:
2025-04-17 17:20:25 +03:00
parent e5d4f80f41
commit b2f72b5a60
6 changed files with 21 additions and 37 deletions

View File

@@ -6,14 +6,14 @@ namespace example
{
void ui_layer::on_attach()
{
VE::CONNECT(this);
m_key = VE::CONNECT(this);
hack::log()("on_attach");
}
void ui_layer::on_detach()
{
VE::DISCONNECT(this);
VE::DISCONNECT(m_key);
hack::log()("on_detach");
}