fix event

This commit is contained in:
2025-04-17 18:46:20 +03:00
parent 75af9aef2e
commit 63c3e911f8
5 changed files with 55 additions and 30 deletions

View File

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