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

@ -10,11 +10,6 @@ public partial class LevelController : Node
private bool _isLevelRunning = false;
// Frequently accessed level elements
public RuntimeLevelData LevelData { get; set; }
public PoolContainer Pools { get; set; }
public PlantField PlantField { get; set; }
public override void _EnterTree()
{
Instance = this;
@ -48,10 +43,6 @@ public partial class LevelController : Node
if (_isLevelRunning == false)
return;
LevelData = null;
Pools = null;
PlantField = null;
_isLevelRunning = false;
}
}