Level Data decentralization

This commit is contained in:
Фёдор Веселов 2024-09-22 20:36:13 +05:00
commit e3613b132e
12 changed files with 52 additions and 28 deletions

View file

@ -16,7 +16,7 @@ public partial class Sun : Area2D
{
if (@event.IsActionPressed("primary_action"))
{
LevelController.Instance.LevelData.AddSun(amount);
RuntimeLevelData.Instance.AddSun(amount);
QueueFree();
}
}