public bool ContainsNode(CircuitNode node) { var returnValue = false; foreach (var part in CircuitParts) { returnValue = (Start == node) || (End == node); } return(returnValue); }
public CircuitPart(CircuitNode start) { EndPoints = new EndPointsClass(); Start = start; Drawables = new List <DrawableBase>(); ResistancesList = new List <float>(); ChildCircuitParts = new List <CircuitPart>(); DebugColor = Random.ColorHSV(0f, 1f, 1f, 1f, 0.7f, 1f); }
public bool ContainsNode(CircuitNode node) { return(Start == node || End == node); }