mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-25 23:49:03 +00:00
merge from develop (tested)
This commit is contained in:
@@ -14,7 +14,7 @@ namespace BBM
|
||||
: System(wal)
|
||||
{}
|
||||
|
||||
void AnimationsSystem::onUpdate(WAL::ViewEntity<Drawable3DComponent, AnimationsComponent> &entity, std::chrono::nanoseconds)
|
||||
void AnimationsSystem::onFixedUpdate(WAL::ViewEntity<Drawable3DComponent, AnimationsComponent> &entity)
|
||||
{
|
||||
auto &model = entity.get<Drawable3DComponent>();
|
||||
auto &anim = entity.get<AnimationsComponent>();
|
||||
@@ -25,6 +25,9 @@ namespace BBM
|
||||
if (modelPtr) {
|
||||
modelPtr->setAnimation(anim.getCurrentModelAnim());
|
||||
anim.incCurrentAnimFrameCounter();
|
||||
anim.incCurrentAnimFrameCounter();
|
||||
anim.incCurrentAnimFrameCounter();
|
||||
anim.incCurrentAnimFrameCounter();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user