Add initial game systems and input handling for player interactions

This commit is contained in:
2025-12-09 22:20:38 +01:00
commit 5e0db113aa
182 changed files with 70557 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
using System;
namespace Core.Systems
{
public class ScoreSystem : IDisposable
{
private int _currentScore;
public ScoreSystem()
{
_currentScore = 0;
GameEvents.PresentCaught += OnPresentCaught;
}
private void OnPresentCaught(int value)
{
_currentScore += value;
GameEvents.ReportScoreUpdated(_currentScore);
}
public void Dispose()
{
GameEvents.PresentCaught -= OnPresentCaught;
}
}
}