Switched scene update to state event
This commit is contained in:
@ -67,7 +67,7 @@ void UICanvas::onStart() {
|
||||
}, this->currentMenu);
|
||||
|
||||
// Scene Update
|
||||
useEventLegacy([&]{
|
||||
useEvent([&](float_t delta){
|
||||
if(this->currentMenu == nullptr) return;
|
||||
this->currentMenu->onTick();
|
||||
}, getScene()->eventSceneUpdate);
|
||||
|
Reference in New Issue
Block a user