using GodotHostTest.Interfaces; using R3; namespace GodotHostTest.Game.Level; public class CurrentLevel : ICurrentLevel { private readonly ReactiveProperty _levelNumber; public CurrentLevel() { _levelNumber = new ReactiveProperty(1); LevelNumber = _levelNumber.ToReadOnlyReactiveProperty(); } public ReadOnlyReactiveProperty LevelNumber { get; } public void NextLevel() { _levelNumber.Value++; } }