public PlayerHealthProvider(int health) { _currentHealth = new IntReactiveProperty(health); MaxHealth = health; IsDead = CurrentHealth.Select(x => x <= 0).ToReactiveProperty(); }