mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-04 10:44:42 +00:00
adding the possibility to pause/resume an animation
This commit is contained in:
@@ -24,6 +24,8 @@ namespace BBM
|
||||
auto &model = entity.getComponent<Drawable3DComponent<RAY::Drawables::Drawables3D::Model>>();
|
||||
auto &anim = entity.getComponent<AnimationsComponent>();
|
||||
|
||||
if (anim.isDisabled())
|
||||
return;
|
||||
model.member.setAnimation(anim.getCurrentModelAnim());
|
||||
anim.setCurrentAnimFrameCounter(anim.getCurrentAnimFrameCounter() + 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user