Level Data decentralization
This commit is contained in:
parent
76b33db91f
commit
e3613b132e
12 changed files with 52 additions and 28 deletions
|
|
@ -16,7 +16,7 @@ public partial class Sun : Area2D
|
|||
{
|
||||
if (@event.IsActionPressed("primary_action"))
|
||||
{
|
||||
LevelController.Instance.LevelData.AddSun(amount);
|
||||
RuntimeLevelData.Instance.AddSun(amount);
|
||||
QueueFree();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue