private void OnNext() { if (_target != null) { _target.SetActive(_condition.GetValue()); } }
protected override void BindProperties() { var selectable = GetComponent <Selectable>(); if (selectable == null) { return; } BindProperty(_interactable, () => selectable.interactable = _interactable.GetValue()); }
protected override void BindProperties() { var canvasGroup = GetComponent <CanvasGroup>(); if (canvasGroup == null) { return; } BindProperty(_alpha, () => canvasGroup.alpha = _alpha.GetValue()); BindProperty(_interactable, () => canvasGroup.interactable = _interactable.GetValue()); }
public override bool GetValue() { return(_conditions.GetValue()); }