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

@ -25,7 +25,10 @@ public partial class DebugMenu : MenuBase
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
GameManager.Instance.GameStateChange += OnGameStateChange;
if (GameManager.Instance is not null)
{
GameManager.Instance.GameStateChange += OnGameStateChange;
}
DefaultSelectedButton.GrabFocus();