Esempio n. 1
0
 // 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;
 }
Esempio n. 2
0
		// 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;
		}