Пример #1
0
        /// <summary>
        /// Change column state.
        /// </summary>
        /// <param name="index">Index.</param>
        /// <param name="active">If set state to active.</param>
        public void ColumnToggle(int index, bool active)
        {
            CellsInfo[index].Rect.gameObject.SetActive(active);

            List.ForEachComponent(component => {
                var a = component as IResizableItem;
                if (a != null)
                {
                    a.ObjectsToResize[index].SetActive(active);
                }
            });

            List.ComponentsColoring();

            Refresh();
        }
Пример #2
0
        /// <summary>
        /// Change column state.
        /// </summary>
        /// <param name="index">Index.</param>
        /// <param name="active">If set state to active.</param>
        public void ColumnToggle(int index, bool active)
        {
            var target = CellsInfo[index];

            target.Rect.gameObject.SetActive(active);

            List.ForEachComponent(component =>
            {
                var child = component.transform.GetChild(target.Position);
                child.gameObject.SetActive(false);
            });

            List.ComponentsColoring();

            Refresh();
        }