Пример #1
0
        private void Update()
        {
            if (_thumb.enabled)
            {
                _thumbWeight      = TBInput.GetFinger(TBInput.Finger.Thumb, controller);
                _thumb.fillAmount = _thumbWeight;
            }
            if (_index.enabled)
            {
                _indexWeight      = TBInput.GetFinger(TBInput.Finger.Index, controller);
                _index.fillAmount = _indexWeight;
            }
            if (_grip.enabled)
            {
                _gripWeight      = TBInput.GetFinger(TBInput.Finger.Grip, controller);
                _grip.fillAmount = _gripWeight;
            }
            else
            {
                _gripWeight = _indexWeight;
            }

            ResolveIcon();
        }