/// <summary> /// 体力はハート制、1ずつ減る /// </summary> public void AddDamage() { hp .Take(1) .Where(x => x > 0) .Subscribe(_ => { hp.Value--; }); }