Level Data decentralization
This commit is contained in:
parent
76b33db91f
commit
e3613b132e
12 changed files with 52 additions and 28 deletions
|
|
@ -35,7 +35,7 @@ public partial class ShovelButton : TextureButton
|
|||
|
||||
for (int i = Utility.LayersCount-1; i >= 0; i--)
|
||||
{
|
||||
if (LevelController.Instance.Pools.EntityField[i].TryGetValue(checkedPosition, out var entity) && entity is RuntimePlantData plantData)
|
||||
if (PoolContainer.Instance.EntityField[i].TryGetValue(checkedPosition, out var entity) && entity is RuntimePlantData plantData)
|
||||
{
|
||||
plantData.Kill();
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -5,6 +5,6 @@ public partial class SunCounter : Label
|
|||
{
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
Text = LevelController.Instance.LevelData.SunCount.ToString();
|
||||
Text = RuntimeLevelData.Instance.SunCount.ToString();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue