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