Switched scene update to state event

This commit is contained in:
2023-03-01 09:40:57 -08:00
parent 6aa7d317d1
commit 1061cda666
10 changed files with 438 additions and 473 deletions

View File

@ -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);