Refactor UI components to inherit from Control and update node paths for consistency
This commit is contained in:
@@ -14,7 +14,7 @@ public partial class PlayerDeathComponent : Node2D
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
_gameManager = GetNode<GameManager>("/root/gameManager");
|
||||
_gameManager = GetNode<GameManager>("/root/GameManager");
|
||||
HealthComponent.Death += OnDeath;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user