Refactor game state management to use a unified Stat system and update UI labels for production and corruption

This commit is contained in:
2025-08-23 02:44:54 +02:00
parent 2998e4c02a
commit 18312671d7
23 changed files with 298 additions and 109 deletions

17
Scripts/Core/StatData.cs Normal file
View File

@@ -0,0 +1,17 @@
using System;
namespace ParasiticGod.Scripts.Core;
public class StatData
{
public double Value { get; private set; }
public event Action<double> OnChanged;
public void Set(double value)
{
if (!(Math.Abs(Value - value) > 0.001)) return;
Value = value;
OnChanged?.Invoke(Value);
}
}