public void AddColumn(ColumnController newColumn, bool toDestroy) { //Debug.Log("AddColumn: start"); newColumn.GetSide().RemoveColumn(newColumn, toDestroy); columns.Add(newColumn); columns[columns.Count - 1].transform.localScale = new Vector3(1f, 1f, 1f); columns[columns.Count - 1].GetCard().name = columns[columns.Count - 1].GetCard().name + columns.Count; columns[columns.Count - 1].SetSide(this); DistributeColumns(); }
public SideController GetSide() { if (parentCard != null) { return(parentCard.GetSide()); } else { return(column.GetSide()); } }