/// <summary> /// Removes line connecting tiles, and clears the stack. /// </summary> public void ClearOrder() { canAdd = false; int count = order.Count; // int index = count; for (int i = 0; i < count; i++) { TileBase tile = order.Last.Value; order.RemoveLast(); tile.ResetLine(); } canAdd = true; }