bradley-mcfadden / worms

A game where you play as a sandworm fighting for survival in the modern world.
MIT License
0 stars 0 forks source link

AbilitiesContainer duplicates on level restart #7

Closed bradley-mcfadden closed 2 years ago

bradley-mcfadden commented 2 years ago

After dying and restarting a level, AbilitiesContainer seems to duplicate and offset itself.

worm (DEBUG) 2022-08-28 3_14_22 PM

bradley-mcfadden commented 2 years ago

Fixed by adding a reset function to AbilitiesContainer that gets called in its _ready(). See this commit.