private void Start() { mButton.OnClickAsObservable().Subscribe(_ => enemy.CurrentHp.Value -= 99); mToggle.OnValueChangedAsObservable().SubscribeToInteractable(mButton); enemy.CurrentHp.SubscribeToText(mText); enemy.IsDead.Where(isDead => isDead) .Subscribe(_ => { mToggle.interactable = mButton.interactable = false; }) .AddTo(this); }