mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-04 02:36:31 +00:00
Resetting the velocity on death
This commit is contained in:
@@ -121,7 +121,7 @@ namespace BBM
|
||||
entity.removeComponent<AnimatorComponent>();
|
||||
if (entity.hasComponent<TimerComponent>())
|
||||
return;
|
||||
entity.getComponent<ControllableComponent>().disabled = true;
|
||||
entity.getComponent<ControllableComponent>().disable();
|
||||
entity.addComponent<TimerComponent>(1s, [](WAL::Entity &ent, WAL::Wal &) {
|
||||
if (!ent.hasComponent<SoundComponent>())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user