mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
Bullets pooling
This commit is contained in:
parent
37bcf8b2d0
commit
fa3805ecfe
18 changed files with 280 additions and 69 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue