There are colliders on the top, right, and left sides of bubbles. If the player collides with the top one, then it will encapsulate the player. if the player collides with the ones on the sides, then the bubble will be kicked.
Bubbles last X seconds, and will levitate after Y seconds.
-
When bubbles levitate, It would be nicer to move horizontally a bit.
-
I used a pooling system for bubbles because I wanted to learn the system but it is not needed in this project. I should have focused on polishing the game more.