Add new UID files and update scene configurations for dialogue components; refactor skill management and input handling

This commit is contained in:
2025-08-26 23:05:30 +02:00
parent 6e71c321f7
commit 6c733d3159
339 changed files with 18075 additions and 3491 deletions

View File

@@ -13,7 +13,7 @@ public partial class MarketplaceButton : Button
[Export] public Container SkillLevelContainer { get; set; }
private GameManager _gameManager;
private SkillUnlockedComponent _skillUnlockedComponent;
private SkillUnlockerComponent _skillUnlockerComponent;
public override void _Ready()
{
@@ -22,7 +22,7 @@ public partial class MarketplaceButton : Button
Setup();
var player = _gameManager.Player;
var skillUnlockerComponent = player?.GetNodeOrNull<SkillUnlockedComponent>("SkillUnlockerComponent");
var skillUnlockerComponent = player?.GetNodeOrNull<SkillUnlockerComponent>("SkillUnlockerComponent");
if (skillUnlockerComponent == null) return;
skillUnlockerComponent.SkillUnlocked += OnSkillUnlock;
@@ -30,7 +30,7 @@ public partial class MarketplaceButton : Button
public override void _ExitTree()
{
_skillUnlockedComponent.SkillUnlocked -= OnSkillUnlock;
_skillUnlockerComponent.SkillUnlocked -= OnSkillUnlock;
}
private void Setup()