protected override void Bind() { if (_stream != null) { _stream.Next += OnNext; _angle = _stream.GetValue(); OnNext(); } }
protected override void BindProperties() { var canvasGroup = GetComponent <CanvasGroup>(); if (canvasGroup == null) { return; } BindProperty(_alpha, () => canvasGroup.alpha = _alpha.GetValue()); BindProperty(_interactable, () => canvasGroup.interactable = _interactable.GetValue()); }