Switched scene update to state event
This commit is contained in:
@ -22,10 +22,10 @@ void AnimationController::addAnimation(Animation *animation) {
|
||||
void AnimationController::onStart() {
|
||||
SceneItemComponent::onStart();
|
||||
|
||||
useEventLegacy([&]{
|
||||
useEvent([&](float_t delta){
|
||||
auto it = this->animations.begin();
|
||||
while(it != this->animations.end()) {
|
||||
(*it)->tick(this->getGame()->timeManager.delta);
|
||||
(*it)->tick(delta);
|
||||
++it;
|
||||
}
|
||||
}, getScene()->eventSceneUnpausedUpdate);
|
||||
|
Reference in New Issue
Block a user