/// <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(); }
/// <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(); }