Exemple #1
0
        internal static void ApplyOptions(DragOption[] options)
        {
            //Debug.Log("ApplyOptions");

            _proxyShouldBeVisible    = true;
            _overlayShouldBeVisible  = true;
            _feedbackShouldBeVisible = true;

            if (options != null)
            {
                int len = options.Length;
                for (int i = 0; i < len; i++)
                {
                    DragOption option = options[i];
                    switch (option.Type)
                    {
                    case DragOptionType.ProxyVisible:
                        _proxyShouldBeVisible = (bool)option.Value;
                        break;

                    case DragOptionType.OverlayVisible:
                        _overlayShouldBeVisible = (bool)option.Value;
                        break;

                    case DragOptionType.FeedbackVisible:
                        _feedbackShouldBeVisible = (bool)option.Value;
                        break;
                    }
                }
            }

            //_boxButtons.Initialize();
        }
        internal static void ApplyOptions(DragOption[] options)
        {
            //Debug.Log("ApplyOptions");

            _proxyShouldBeVisible = true;
            _overlayShouldBeVisible = true;
            _feedbackShouldBeVisible = true;

            if (options != null)
            {
                int len = options.Length;
                for (int i = 0; i < len; i++)
                {
                    DragOption option = options[i];
                    switch (option.Type)
                    {
                        case DragOptionType.ProxyVisible:
                            _proxyShouldBeVisible = (bool)option.Value;
                            break;

                        case DragOptionType.OverlayVisible:
                            _overlayShouldBeVisible = (bool)option.Value;
                            break;

                        case DragOptionType.FeedbackVisible:
                            _feedbackShouldBeVisible = (bool)option.Value;
                            break;
                    }
                }
            }

            //_boxButtons.Initialize();
        }