// Merge two blocks into one public void Merge(Block other) { if (!CanMerge(other)) { throw new ApplicationException("Can't merge the two blocks!"); } Append(other); other.DisconnectFromFallThroughAndTargets(); other.Parent = null; }
// Merge two blocks into one public void Merge(Block other) { if (!CanMerge(other)) throw new ApplicationException("Can't merge the two blocks!"); Append(other); other.DisconnectFromFallThroughAndTargets(); other.Parent = null; }