Пример #1
0
        private void SetMultiplyController(OSCMultiplySliders controller)
        {
            if (_multiplyController == null)
            {
                return;
            }

            if (_multiplyController.LayoutDirection == OSCMultiplySliders.Direction.Vertical)
            {
                if (direction == Direction.BottomToTop || direction == Direction.TopToBottom)
                {
                    SetDirection(direction == Direction.BottomToTop ? Direction.LeftToRight : Direction.RightToLeft, true);
                }
            }
            else
            {
                if (direction == Direction.LeftToRight || direction == Direction.RightToLeft)
                {
                    SetDirection(direction == Direction.LeftToRight ? Direction.BottomToTop : Direction.TopToBottom, true);
                }
            }
        }
Пример #2
0
        protected override void OnValidate()
        {
            base.OnValidate();

            MultiplyController = _multiplyController;
        }