Closed lucasmontec closed 5 years ago
It instantiates a list every call, that can be changed to just clear a list.
public List<Node> GetConnectedChildren() { children.Clear(); foreach (var cnn in connections) { children.Add(cnn.node); } return children; }
Where is this located? I can't find such a function anywhere in the code base
It instantiates a list every call, that can be changed to just clear a list.
public List<Node> GetConnectedChildren() { children.Clear(); foreach (var cnn in connections) { children.Add(cnn.node); } return children; }