mirror of
https://github.com/Xevion/Boids.git
synced 2025-12-10 16:06:34 -06:00
remove TimeScale, fix DisableFocusing concerning LineRenderer array
This commit is contained in:
@@ -230,9 +230,11 @@ public class Boid : MonoBehaviour {
|
||||
|
||||
|
||||
// Destroy Line Renderers (and child GameObjects)
|
||||
foreach (Transform child in transform)
|
||||
DestroyImmediate(child.gameObject);
|
||||
Array.Clear(_lineRenderers, 0, _lineRenderers.Length);
|
||||
for (int i = 0; i < _lineRenderers.Length; i++) {
|
||||
_lineRenderers[i].positionCount = 0;
|
||||
DestroyImmediate(_lineRenderers[i].gameObject);
|
||||
_lineRenderers[i] = null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -102,8 +102,6 @@ public class BoidController : MonoBehaviour {
|
||||
ShapeDraw.CircleVertexCount = circleVertexCount;
|
||||
// ShapeDraw.ArcVertexCount = arcVertexCount;
|
||||
|
||||
Time.timeScale = 0.3f;
|
||||
|
||||
AddBoids(boidCount);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user