Switched scene update to state event

This commit is contained in:
2023-03-01 09:40:57 -08:00
parent 1d26228cb5
commit b9625e7f14
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);