Bullets pooling

This commit is contained in:
Marco 2025-06-08 16:33:38 +02:00
commit fa3805ecfe
18 changed files with 280 additions and 69 deletions

View file

@ -13,6 +13,7 @@ public partial class HitButton : Switch
private void OnAreaEntered(Area2D area)
{
if (area is not Bullet bullet) return;
if (!bullet.Enabled) return;
this.Activate(this.ActivationType);