Added static access for score

This commit is contained in:
Pasha Bibko
2026-01-22 13:13:50 +00:00
parent 802ac2e078
commit 96f6d14410

View File

@@ -18,10 +18,15 @@ namespace InterfaceOff.WorldScene
[field: SerializeField] private WindowSpawner Spawner { get; set; }
private static List<PlayerScore> PlayerScores { get; } = new();
private static ScoreTracker Instance { get; set; }
private bool StoredScore = false;
private float Score = 0f;
public static float CurrentScore => Instance.Score;
private void Awake() => Instance = this;
private void Update()
{
if (Spawner.AutoSpawn)