remove TimeScale, fix DisableFocusing concerning LineRenderer array

This commit is contained in:
Xevion
2020-06-05 21:44:10 -05:00
parent 7bc306a7f6
commit cddacb0efa
2 changed files with 5 additions and 5 deletions

View File

@@ -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>

View File

@@ -102,8 +102,6 @@ public class BoidController : MonoBehaviour {
ShapeDraw.CircleVertexCount = circleVertexCount;
// ShapeDraw.ArcVertexCount = arcVertexCount;
Time.timeScale = 0.3f;
AddBoids(boidCount);
}