public void GenerateConnections(IAlgorithm algorithm) { ClearConnections(); Stopwatch.Reset(); Stopwatch.Start(); var cons = algorithm.CalculateRoute(); StartCoroutine(algorithm.ShowConnectionsDelayed(cons)); }