#pragma warning restore 649 protected override void OnUpdate() { for (var i = 0; i < _data.Length; i++) { LineRendererHelper.BaseInit(_data.Position[i], _data.PlanetaryOrbit[i], _data.LineRenderer[i]); } }
#pragma warning restore 649 protected override void OnUpdate() { for (var i = 0; i < _data.Length; i++) { LineRendererHelper.CalculateByCamera(_data.PlanetaryOrbit[i], _data.LineRenderer[i]); } }
private void SetupSelectionCircle() { var lineRenderer = GetComponent <LineRenderer>(); Material whiteDiffuseMat = new Material(Shader.Find("Unlit/Texture")); lineRenderer.material = whiteDiffuseMat; lineRenderer.enabled = false; LineRendererHelper.DrawCircle(lineRenderer, _rectTransform.sizeDelta.x / 2); }