Moved weapon equipment logic to submodule

This commit is contained in:
Maddo 2025-02-28 18:27:56 +01:00
commit 11a22684d4
8 changed files with 128 additions and 59 deletions

View file

@ -165,7 +165,8 @@ public partial class GameManager : Node2D
_inventoryManager.ItemUsed += _player.UseItem;
}
SpawnWeapons();
// Wait before the player is fully initialized before spawning weapons on it
CallDeferred(MethodName.SpawnWeapons);
}
public void SpawnPlayer()