Esempio n. 1
0
 protected override void Bind()
 {
     if (_stream != null)
     {
         _stream.Next += OnNext;
         _angle        = _stream.GetValue();
         OnNext();
     }
 }
Esempio n. 2
0
        protected override void BindProperties()
        {
            var canvasGroup = GetComponent <CanvasGroup>();

            if (canvasGroup == null)
            {
                return;
            }

            BindProperty(_alpha, () => canvasGroup.alpha = _alpha.GetValue());
            BindProperty(_interactable, () => canvasGroup.interactable = _interactable.GetValue());
        }